Correct sugar-shell path logic
This commit is contained in:
parent
e1f0ba15f4
commit
751fa0f663
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user