Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/sugar-shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-03 18:41:00 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-03 18:41:00 (GMT)
commit4bde802bbd487f02697e821fea510c2055eccf81 (patch)
treef848f13b7e02d1859b57de353e3462320a07c497 /shell/sugar-shell
parent9b6d7c62925f46f7ffa0ea9b9013e0ed9bcbaa0f (diff)
Simplified system paths for running sugar from the source dir.
Diffstat (limited to 'shell/sugar-shell')
-rwxr-xr-xshell/sugar-shell6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/sugar-shell b/shell/sugar-shell
index 08a3a6d..5b85da1 100755
--- a/shell/sugar-shell
+++ b/shell/sugar-shell
@@ -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