Fix some path bugs. Reload the profile when first time dialog wrote it.

This commit is contained in:
Marco Pesenti Gritti
2006-10-17 14:31:04 +02:00
parent b481373db0
commit 637a08154e
3 changed files with 37 additions and 18 deletions
+8 -2
View File
@@ -31,9 +31,15 @@ from sugar import env
from sugar import setup
if sourcedir:
if os.environ.has_key('PYTHONPATH'):
old_path = os.environ['PYTHONPATH']
os.environ['PYTHONPATH'] = sourcedir + ':' + old_path
else:
os.environ['PYTHONPATH'] = sourcedir
bin_path = sourcedir
bin_path += ';' + os.path.join(sourcedir, 'shell')
bin_path += ';' + os.path.join(sourcedir, 'services/presence')
bin_path += ':' + os.path.join(sourcedir, 'shell')
bin_path += ':' + os.path.join(sourcedir, 'services/presence')
if os.environ.has_key('PATH'):
old_path = os.environ['PATH']