From c9b5381c16fce563307379aa8b52a5b902a7cc98 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 09 Oct 2006 16:03:35 +0000 Subject: Add a list of names to pick from. Refactor a bit to allow different simulator stages. Create a bunch of random bots. --- (limited to 'tests') diff --git a/tests/simulator/bots/chaitanya.py b/tests/simulator/demo/chaitanya.py index 95798c7..95798c7 100644 --- a/tests/simulator/bots/chaitanya.py +++ b/tests/simulator/demo/chaitanya.py diff --git a/tests/simulator/bots/kiu.py b/tests/simulator/demo/kiu.py index 2e8c448..2e8c448 100755 --- a/tests/simulator/bots/kiu.py +++ b/tests/simulator/demo/kiu.py diff --git a/tests/simulator/demo/others.py b/tests/simulator/demo/others.py new file mode 100644 index 0000000..3b1218f --- /dev/null +++ b/tests/simulator/demo/others.py @@ -0,0 +1,5 @@ +from sugar.simulator import Bot + +for i in range(0, 10): + bot = Bot() + bot.start() diff --git a/tests/simulator/bots/penelope.py b/tests/simulator/demo/penelope.py index 90f9d35..90f9d35 100644 --- a/tests/simulator/bots/penelope.py +++ b/tests/simulator/demo/penelope.py diff --git a/tests/simulator/simulator b/tests/simulator/simulator index de21697..552512c 100755 --- a/tests/simulator/simulator +++ b/tests/simulator/simulator @@ -13,10 +13,10 @@ 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): +stage_path = os.path.join(base_path, 'demo') +for bot_file in os.listdir(stage_path): if bot_file.endswith('.py') and bot_file != 'kiu.py': - execfile(os.path.join(bots_path, bot_file)) + execfile(os.path.join(stage_path, bot_file)) mainloop = gobject.MainLoop() mainloop.run() -- cgit v0.9.1