Fix opening activities

This commit is contained in:
Marco Pesenti Gritti 2006-10-17 10:17:30 +02:00
parent 0836c57f76
commit 9ca5c6c0bf
2 changed files with 8 additions and 5 deletions

View File

@ -19,8 +19,6 @@
import sys
import os
sys.path.insert(0, env.get_activities_dir())
from sugar.activity import ActivityFactory
ActivityFactory.create(sys.argv[1])

View File

@ -18,6 +18,7 @@
import sys
import logging
import os
import pygtk
pygtk.require('2.0')
@ -29,10 +30,14 @@ import dbus.glib
gobject.threads_init()
dbus.glib.threads_init()
from sugar.activity import ActivityFactory
import sugar.logger
from sugar import logger
from sugar import env
sugar.logger.start(sys.argv[1])
sys.path.insert(0, env.get_activities_dir())
from sugar.activity import ActivityFactory
logger.start(sys.argv[1])
logging.info('Starting activity factory %s' % sys.argv[1])