Correct sugar-shell path logic

This commit is contained in:
Marco Pesenti Gritti 2007-03-08 15:50:29 +01:00
parent e1f0ba15f4
commit 751fa0f663

View File

@ -39,7 +39,10 @@ from sugar.emulator import Emulator
import _sugar import _sugar
if len(sys.argv) == 1: if len(sys.argv) == 1:
program = 'shell/sugar-shell' if sourcedir:
program = os.path.join(sourcedir, 'shell/sugar-shell')
else:
program = 'sugar-shell'
else: else:
program = sys.argv[1] program = sys.argv[1]