Enable the console only when running from source path.

This commit is contained in:
Marco Pesenti Gritti
2006-05-17 00:12:01 -04:00
parent 53ccec5267
commit 2ae62db4cc
4 changed files with 25 additions and 14 deletions
+6 -3
View File
@@ -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()