Minor fixes

This commit is contained in:
Marco Pesenti Gritti 2006-07-27 10:35:59 +02:00
parent d778d45b13
commit 1d370ca8e5
4 changed files with 11 additions and 5 deletions

View File

@ -2,11 +2,9 @@ import os
import dbus
import dbus.glib
import pygtk
pygtk.require('2.0')
import gtk
import wnck
import gobject
import wnck
from sugar.LogWriter import LogWriter
from ActivityRegistry import ActivityRegistry

View File

@ -5,6 +5,9 @@ import os
import pwd
import random
import pygtk
pygtk.require('2.0')
def add_to_bin_path(path):
if os.environ.has_key('PATH'):
old_path = os.environ['PATH']

View File

@ -1,6 +1,7 @@
#!/usr/bin/python
import sys
import logging
import pygtk
pygtk.require('2.0')
@ -10,10 +11,12 @@ from sugar.activity import Activity
from sugar.LogWriter import LogWriter
from sugar import theme
logging.info('Starting activity factory %s' % sys.argv[1])
theme.setup()
#lw = LogWriter(sys.argv[1])
#lw.start()
lw = LogWriter(sys.argv[1])
lw.start()
if len(sys.argv) == 4:
Activity.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])

View File

@ -10,4 +10,6 @@ if level == 'debug':
logging.basicConfig(level=logging.DEBUG,
format='%(levelname)s %(message)s')
logging.info('Starting presence service')
PresenceService.main()