summaryrefslogtreecommitdiffstats
path: root/ShowRunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'ShowRunner.py')
-rw-r--r--ShowRunner.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/ShowRunner.py b/ShowRunner.py
new file mode 100644
index 0000000..05877ed
--- /dev/null
+++ b/ShowRunner.py
@@ -0,0 +1,17 @@
+from bridge import Bridge
+from fish_show import FishShow
+from sunrise import SunriseShow
+from constants import *
+
+import sys
+sys.path.append('webapp')
+from run import server_thread, send_queue, recv_queue
+
+def run_show():
+ server_thread.start()
+ bridge = Bridge()
+ SunriseShow(bridge, send_queue=recv_queue, recv_queue=send_queue).run(framerate=FRAME_RATE)
+ FishShow(bridge, send_queue=recv_queue, recv_queue=send_queue).run(framerate=FRAME_RATE)
+ print "done!"
+
+run_show() \ No newline at end of file