Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/simulator/simulator
blob: de2169749796d894f61509201b4ffb239dad62f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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__))

bots_path = os.path.join(base_path, 'bots')
for bot_file in os.listdir(bots_path):
	if bot_file.endswith('.py') and bot_file != 'kiu.py':
		execfile(os.path.join(bots_path, bot_file))

mainloop = gobject.MainLoop()
mainloop.run()