2006-10-09 15:11:15 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
import os
|
|
|
|
|
|
|
|
import gobject
|
|
|
|
|
|
|
|
from sugar.session.TestSession import TestSession
|
|
|
|
from sugar.presence import PresenceService
|
|
|
|
|
|
|
|
session = TestSession()
|
|
|
|
session.start()
|
|
|
|
|
|
|
|
PresenceService.start()
|
|
|
|
|
|
|
|
base_path = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
2006-10-09 18:03:35 +02:00
|
|
|
stage_path = os.path.join(base_path, 'demo')
|
|
|
|
for bot_file in os.listdir(stage_path):
|
2006-10-10 16:35:52 +02:00
|
|
|
if bot_file.endswith('.py'):
|
2006-10-09 18:03:35 +02:00
|
|
|
execfile(os.path.join(stage_path, bot_file))
|
2006-10-09 15:11:15 +02:00
|
|
|
|
|
|
|
mainloop = gobject.MainLoop()
|
|
|
|
mainloop.run()
|