diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-17 12:31:04 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-17 12:31:04 (GMT) |
commit | 637a08154ed1ebe6c6dd5ee326288fba061842f6 (patch) | |
tree | 678afeb7276568928c2a245398f6dd3cd5695775 /sugar-emulator | |
parent | b481373db0addfa38c52d183610e030c821dc05e (diff) |
Fix some path bugs. Reload the profile when first time dialog wrote it.
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-x | sugar-emulator | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sugar-emulator b/sugar-emulator index dafc275..9b629d4 100755 --- a/sugar-emulator +++ b/sugar-emulator @@ -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'] |