From 4a15327297ac1cacb3f75df8d2b7b0e48474916d Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 9 Oct 2006 13:20:39 +0200 Subject: [PATCH] Refactor directory structure a bit in preparation to the new simulator. --- tests/simulator/bots.py | 18 ------------------ tests/simulator/{ => bots}/kiu.py | 2 +- tests/simulator/{ => data}/LICENSE | 0 tests/simulator/{ => data}/chaitanya.jpg | Bin tests/simulator/{ => data}/kiu.jpg | Bin tests/simulator/{ => data}/penelope.jpg | Bin 6 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 tests/simulator/bots.py rename tests/simulator/{ => bots}/kiu.py (97%) rename tests/simulator/{ => data}/LICENSE (100%) rename tests/simulator/{ => data}/chaitanya.jpg (100%) rename tests/simulator/{ => data}/kiu.jpg (100%) rename tests/simulator/{ => data}/penelope.jpg (100%) diff --git a/tests/simulator/bots.py b/tests/simulator/bots.py deleted file mode 100644 index 68bc4e16..00000000 --- a/tests/simulator/bots.py +++ /dev/null @@ -1,18 +0,0 @@ -import os - -import gtk - -from sugar.bots import Bot - -basedir = os.path.dirname(__file__) - -bot = Bot("Chaitanya", os.path.join(basedir, "chaitanya.jpg")) -bot.start() - -bot = Bot("Kiu", os.path.join(basedir, "kiu.jpg")) -bot.start() - -bot = Bot("Penelope", os.path.join(basedir, "penelope.jpg")) -bot.start() - -gtk.main() diff --git a/tests/simulator/kiu.py b/tests/simulator/bots/kiu.py similarity index 97% rename from tests/simulator/kiu.py rename to tests/simulator/bots/kiu.py index 18f30fd1..17b1e1e9 100755 --- a/tests/simulator/kiu.py +++ b/tests/simulator/bots/kiu.py @@ -24,7 +24,7 @@ class KiuBot(Bot): self.add_action(action, 20) curdir = os.path.abspath(os.path.dirname(__file__)) - self._icon_file = os.path.join(curdir, 'kiu.jpg') + self._icon_file = os.path.join(curdir, '../data/kiu.jpg') def __activity_switch_cb(self): self._activity_switch_timeout = None diff --git a/tests/simulator/LICENSE b/tests/simulator/data/LICENSE similarity index 100% rename from tests/simulator/LICENSE rename to tests/simulator/data/LICENSE diff --git a/tests/simulator/chaitanya.jpg b/tests/simulator/data/chaitanya.jpg similarity index 100% rename from tests/simulator/chaitanya.jpg rename to tests/simulator/data/chaitanya.jpg diff --git a/tests/simulator/kiu.jpg b/tests/simulator/data/kiu.jpg similarity index 100% rename from tests/simulator/kiu.jpg rename to tests/simulator/data/kiu.jpg diff --git a/tests/simulator/penelope.jpg b/tests/simulator/data/penelope.jpg similarity index 100% rename from tests/simulator/penelope.jpg rename to tests/simulator/data/penelope.jpg