diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-08 14:50:29 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-08 14:50:29 (GMT) |
commit | 751fa0f66330cc77a9828a6c989bbddaacf50127 (patch) | |
tree | 13fedbf32f9e30b2ed2ab0b4de4c83f9e1b2c60d /sugar-emulator | |
parent | e1f0ba15f4241fe9a74eec621de957c72d2f2265 (diff) |
Correct sugar-shell path logic
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-x | sugar-emulator | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sugar-emulator b/sugar-emulator index e83c20a..98e51d3 100755 --- a/sugar-emulator +++ b/sugar-emulator @@ -39,7 +39,10 @@ from sugar.emulator import Emulator import _sugar if len(sys.argv) == 1: - program = 'shell/sugar-shell' + if sourcedir: + program = os.path.join(sourcedir, 'shell/sugar-shell') + else: + program = 'sugar-shell' else: program = sys.argv[1] |