Restore the sugar script so we can run from installation too
This commit is contained in:
parent
dce4a8c13c
commit
07434a4834
@ -1,5 +1,7 @@
|
|||||||
SUBDIRS = chat browser shell
|
SUBDIRS = chat browser shell
|
||||||
|
|
||||||
|
bin_SCRIPTS = sugar
|
||||||
|
|
||||||
sugardir = $(pythondir)/sugar
|
sugardir = $(pythondir)/sugar
|
||||||
sugar_PYTHON = \
|
sugar_PYTHON = \
|
||||||
__init__.py \
|
__init__.py \
|
||||||
|
28
sugar
Executable file
28
sugar
Executable file
@ -0,0 +1,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.
|
||||||
|
|
||||||
|
import sugar.chat
|
||||||
|
sugar.chat.main()
|
||||||
|
elif sys.argv[1] == 'shell':
|
||||||
|
import sugar.shell
|
||||||
|
sugar.shell.main()
|
||||||
|
elif sys.argv[1] == 'chat':
|
||||||
|
import sugar.chat
|
||||||
|
sugar.chat.main()
|
||||||
|
elif sys.argv[1] == 'browser':
|
||||||
|
import sugar.browser
|
||||||
|
sugar.browser.main()
|
||||||
|
else:
|
||||||
|
print "Unkown activity"
|
Loading…
Reference in New Issue
Block a user