set gabble and SE log file variables

This commit is contained in:
Guillaume Desmottes 2007-05-07 17:59:23 +02:00
parent 6d5bc75092
commit 888e44e151

View File

@ -29,6 +29,8 @@ pygtk.require('2.0')
import gtk import gtk
import gobject import gobject
from sugar import env
def _get_display_number(): def _get_display_number():
"""Find a free display number trying to connect to 6000+ ports""" """Find a free display number trying to connect to 6000+ ports"""
log.info( "Attempting to find free port for X11 (Xephyr)" ) log.info( "Attempting to find free port for X11 (Xephyr)" )
@ -104,6 +106,9 @@ def _setup_env():
os.environ['PYTHONPATH'] = source_dir + ':' + path os.environ['PYTHONPATH'] = source_dir + ':' + path
log.info( 'Set PYTHONPATH=%s', os.environ['PYTHONPATH'] ) log.info( 'Set PYTHONPATH=%s', os.environ['PYTHONPATH'] )
os.environ['GABBLE_LOGFILE'] = os.path.join(env.get_profile_path(), 'logs', 'telepathy-gabble.log')
os.environ['STREAM_ENGINE_LOGFILE'] = os.path.join(env.get_profile_path(), 'logs', 'telepathy-stream-engine.log')
def main(): def main():
"""Script-level operations""" """Script-level operations"""
logging.basicConfig() logging.basicConfig()