blob: 4c6ec88685f2c1447ecb200b536355861a0cbd34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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.
from sugar.chat import chat
chat.main()
elif sys.argv[1] == 'shell':
from sugar.shell import shell
shell.main()
elif sys.argv[1] == 'chat':
from sugar.chat import chat
chat.main()
elif sys.argv[1] == 'browser':
from sugar.browser import browser
browser.main()
else:
print "Unknown activity"
|