Minor fixes
This commit is contained in:
parent
d778d45b13
commit
1d370ca8e5
@ -2,11 +2,9 @@ import os
|
|||||||
|
|
||||||
import dbus
|
import dbus
|
||||||
import dbus.glib
|
import dbus.glib
|
||||||
import pygtk
|
|
||||||
pygtk.require('2.0')
|
|
||||||
import gtk
|
import gtk
|
||||||
import wnck
|
|
||||||
import gobject
|
import gobject
|
||||||
|
import wnck
|
||||||
|
|
||||||
from sugar.LogWriter import LogWriter
|
from sugar.LogWriter import LogWriter
|
||||||
from ActivityRegistry import ActivityRegistry
|
from ActivityRegistry import ActivityRegistry
|
||||||
|
@ -5,6 +5,9 @@ import os
|
|||||||
import pwd
|
import pwd
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
import pygtk
|
||||||
|
pygtk.require('2.0')
|
||||||
|
|
||||||
def add_to_bin_path(path):
|
def add_to_bin_path(path):
|
||||||
if os.environ.has_key('PATH'):
|
if os.environ.has_key('PATH'):
|
||||||
old_path = os.environ['PATH']
|
old_path = os.environ['PATH']
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
import logging
|
||||||
|
|
||||||
import pygtk
|
import pygtk
|
||||||
pygtk.require('2.0')
|
pygtk.require('2.0')
|
||||||
@ -10,10 +11,12 @@ from sugar.activity import Activity
|
|||||||
from sugar.LogWriter import LogWriter
|
from sugar.LogWriter import LogWriter
|
||||||
from sugar import theme
|
from sugar import theme
|
||||||
|
|
||||||
|
logging.info('Starting activity factory %s' % sys.argv[1])
|
||||||
|
|
||||||
theme.setup()
|
theme.setup()
|
||||||
|
|
||||||
#lw = LogWriter(sys.argv[1])
|
lw = LogWriter(sys.argv[1])
|
||||||
#lw.start()
|
lw.start()
|
||||||
|
|
||||||
if len(sys.argv) == 4:
|
if len(sys.argv) == 4:
|
||||||
Activity.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])
|
Activity.register_factory(sys.argv[1], sys.argv[2], sys.argv[3])
|
||||||
|
@ -10,4 +10,6 @@ if level == 'debug':
|
|||||||
logging.basicConfig(level=logging.DEBUG,
|
logging.basicConfig(level=logging.DEBUG,
|
||||||
format='%(levelname)s %(message)s')
|
format='%(levelname)s %(message)s')
|
||||||
|
|
||||||
|
logging.info('Starting presence service')
|
||||||
|
|
||||||
PresenceService.main()
|
PresenceService.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user