Minor fixes
This commit is contained in:
parent
d778d45b13
commit
1d370ca8e5
@ -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
|
||||
|
@ -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']
|
||||
|
@ -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])
|
||||
|
@ -10,4 +10,6 @@ if level == 'debug':
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(levelname)s %(message)s')
|
||||
|
||||
logging.info('Starting presence service')
|
||||
|
||||
PresenceService.main()
|
||||
|
Loading…
Reference in New Issue
Block a user