aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-08-04 22:13:33 -0400
committerChristopher Harvey <chris@basementcode.com>2010-08-04 22:13:33 -0400
commit9aa124b747efd85b9998d3e7b316542276707bd5 (patch)
tree86a88417db2a5d96e51d9e8bbee72c0f69930d8d
parentFixed bug where stale input validation scripts weren't being reloaded. (diff)
downloadventoo-9aa124b747efd85b9998d3e7b316542276707bd5.tar.gz
ventoo-9aa124b747efd85b9998d3e7b316542276707bd5.tar.bz2
ventoo-9aa124b747efd85b9998d3e7b316542276707bd5.zip
Converted some python2 statements to python3.
-rwxr-xr-xventoo7
1 files changed, 4 insertions, 3 deletions
diff --git a/ventoo b/ventoo
index 202ded8..c7bff1c 100755
--- a/ventoo
+++ b/ventoo
@@ -15,15 +15,16 @@ sandboxDir = '/'
if len(sys.argv) > 1:
sandboxDir = sys.argv[1]
if not osp.isdir(sandboxDir):
- print sandboxDir + " is not a directory."
+ print(sandboxDir + " is not a directory.")
sys.exit(0)
-print 'Starting augeas...'
+print('Starting augeas...')
#None could be a 'loadpath'
a = augeas.Augeas(sandboxDir, None, augeas.Augeas.SAVE_NEWFILE)
-print 'Creating window...'
+print('Creating window...')
ventoo.main.sandboxDir = sandboxDir
+sys.path.append("/tmp")
#Note, it IS possible to create mutiple windows and augeas
#instances to edit multiple "roots" at the same time.