sugar-toolkit-gtk3/shell/sugar-activity

20 lines
349 B
Plaintext
Raw Normal View History

2006-07-12 22:17:57 +02:00
#!/usr/bin/python
import sys
import gobject
from sugar.activity import Activity
from sugar.LogWriter import LogWriter
from sugar import theme
theme.setup()
lw = LogWriter(sys.argv[1])
lw.start()
if len(sys.argv) == 4:
Activity.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])
else:
Activity.register_factory(sys.argv[1], sys.argv[2])