aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-06-11 22:34:32 -0400
committerChristopher Harvey <chris@basementcode.com>2010-06-12 13:36:35 -0400
commite6a0ed78725ef94c14579e7c6b31da25c91d8b45 (patch)
tree89ceabff1c1613398606ebf3b0869871749961e3
parentfixed getVentooModuleNameFromSysPath...it was being without system paths. (diff)
downloadventoo-e6a0ed78725ef94c14579e7c6b31da25c91d8b45.tar.gz
ventoo-e6a0ed78725ef94c14579e7c6b31da25c91d8b45.tar.bz2
ventoo-e6a0ed78725ef94c14579e7c6b31da25c91d8b45.zip
fixed bugs in ventoo exectuable.
-rwxr-xr-xventoo9
1 files changed, 6 insertions, 3 deletions
diff --git a/ventoo b/ventoo
index d7d9779..202ded8 100755
--- a/ventoo
+++ b/ventoo
@@ -1,10 +1,13 @@
#!/usr/bin/env python
import sys
+import pygtk
+pygtk.require('2.0')
+import gtk
import os.path as osp
import ventoo.main
import augeas
-import shutils
+import shutil
import os
sandboxDir = '/'
@@ -20,8 +23,8 @@ print 'Starting augeas...'
a = augeas.Augeas(sandboxDir, None, augeas.Augeas.SAVE_NEWFILE)
print 'Creating window...'
-if sandboxDir == '/':
- pass
+ventoo.main.sandboxDir = sandboxDir
+
#Note, it IS possible to create mutiple windows and augeas
#instances to edit multiple "roots" at the same time.
window = ventoo.main.MainWindow(a)