diff options
author | Guillaume Desmottes <cassidy@cass-wks.(none)> | 2007-05-07 15:59:23 (GMT) |
---|---|---|
committer | Guillaume Desmottes <cassidy@cass-wks.(none)> | 2007-05-07 15:59:23 (GMT) |
commit | 888e44e1514c7a1b3b320b4b0025d49e7017c811 (patch) | |
tree | ebb86530e1d3c3133ece4eda0de70d384b217a4a /sugar-emulator | |
parent | 6d5bc75092b0b68042c943cef694fea7999722ea (diff) |
set gabble and SE log file variables
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-x | sugar-emulator | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sugar-emulator b/sugar-emulator index dbbaab9..912aa67 100755 --- a/sugar-emulator +++ b/sugar-emulator @@ -29,6 +29,8 @@ pygtk.require('2.0') import gtk import gobject +from sugar import env + def _get_display_number(): """Find a free display number trying to connect to 6000+ ports""" log.info( "Attempting to find free port for X11 (Xephyr)" ) @@ -104,6 +106,9 @@ def _setup_env(): os.environ['PYTHONPATH'] = source_dir + ':' + path 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(): """Script-level operations""" logging.basicConfig() |