sugar-toolkit-gtk3/shell/sugar-activity-factory
2006-08-11 13:05:33 +02:00

24 lines
428 B
Python
Executable File

#!/usr/bin/python
import sys
import logging
import pygtk
pygtk.require('2.0')
import gtk
import dbus.glib
# Work around for dbus mutex locking issue
gtk.gdk.threads_init()
dbus.glib.threads_init()
from sugar.activity import ActivityFactory
import sugar.logger
sugar.logger.start(sys.argv[1])
logging.info('Starting activity factory %s' % sys.argv[1])
ActivityFactory.register_factory(sys.argv[1], sys.argv[2])
gtk.main()