2006-05-12 08:34:20 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
if len(sys.argv) == 1:
|
|
|
|
# FIXME Start a session
|
|
|
|
|
|
|
|
# We are lucky and this
|
|
|
|
# currently behave as we want.
|
|
|
|
# The chat depends on the
|
|
|
|
# web browser, so both activities
|
|
|
|
# are spanned. But obviously we
|
|
|
|
# need something better.
|
|
|
|
|
2006-05-12 08:52:32 +02:00
|
|
|
from sugar.chat import chat
|
|
|
|
chat.main()
|
2006-05-12 08:34:20 +02:00
|
|
|
elif sys.argv[1] == 'shell':
|
2006-05-12 08:52:32 +02:00
|
|
|
from sugar.shell import shell
|
|
|
|
shell.main()
|
2006-05-12 08:34:20 +02:00
|
|
|
elif sys.argv[1] == 'chat':
|
2006-05-12 08:52:32 +02:00
|
|
|
from sugar.chat import chat
|
|
|
|
chat.main()
|
2006-05-12 08:34:20 +02:00
|
|
|
elif sys.argv[1] == 'browser':
|
2006-05-12 08:52:32 +02:00
|
|
|
from sugar.browser import browser
|
|
|
|
browser.main()
|
2006-05-12 08:34:20 +02:00
|
|
|
else:
|
|
|
|
print "Unknown activity"
|