2006-07-12 22:17:57 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
2006-07-20 16:49:11 +02:00
|
|
|
import pygtk
|
|
|
|
pygtk.require('2.0')
|
2006-07-12 22:17:57 +02:00
|
|
|
import gobject
|
|
|
|
|
|
|
|
from sugar.activity import Activity
|
|
|
|
from sugar.LogWriter import LogWriter
|
|
|
|
from sugar import theme
|
|
|
|
|
|
|
|
theme.setup()
|
|
|
|
|
2006-07-26 18:00:28 +02:00
|
|
|
#lw = LogWriter(sys.argv[1])
|
|
|
|
#lw.start()
|
2006-07-12 22:17:57 +02:00
|
|
|
|
2006-07-14 16:40:45 +02:00
|
|
|
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])
|