Simplified system paths for running sugar from the source dir.

This commit is contained in:
Tomeu Vizoso
2007-02-03 19:41:00 +01:00
parent 9b6d7c6292
commit 4bde802bbd
2 changed files with 10 additions and 40 deletions
+5 -1
View File
@@ -19,6 +19,9 @@
import sys
import os
if len(sys.argv) == 2:
sys.path.insert(0, sys.argv[1])
import pygtk
pygtk.require('2.0')
import gtk
@@ -32,7 +35,8 @@ from sugar import TracebackUtils
logger.cleanup()
logger.start('shell')
sys.path.insert(0, os.path.join(env.get_data_dir(), 'shell'))
if len(sys.argv) == 1:
sys.path.insert(0, os.path.join(env.get_data_dir(), 'shell'))
from view.FirstTimeDialog import FirstTimeDialog
from view.Shell import Shell