Enable the console only when running from source path.
This commit is contained in:
@@ -7,12 +7,15 @@ import gtk
|
||||
|
||||
from sugar.shell import shell
|
||||
|
||||
def start():
|
||||
def start(console):
|
||||
shell.main()
|
||||
|
||||
print 'aaaa'
|
||||
activities = ['sugar/chat/chat', 'sugar/browser/browser']
|
||||
|
||||
for activity in activities:
|
||||
os.spawnvp(os.P_NOWAIT, 'python', [ 'python', '-m', activity ])
|
||||
args = [ 'python', '-m', activity ]
|
||||
if console:
|
||||
args.append('--console')
|
||||
os.spawnvp(os.P_NOWAIT, 'python', args)
|
||||
|
||||
gtk.main()
|
||||
|
||||
Reference in New Issue
Block a user