diff options
| author | Aaron Perley <aaron.perley@gmail.com> | 2016-10-11 02:03:49 -0400 |
|---|---|---|
| committer | Aaron Perley <aaron.perley@gmail.com> | 2016-10-11 02:03:49 -0400 |
| commit | 2d37dd487f0571ce94a0e4e966931dd6697d685f (patch) | |
| tree | 3a55e17552c4c5cb2a26f23c4613d0d7ca0dce28 /webapp/run.py | |
| parent | 198dcfc6f43724a3240496259e2bcda8b6bf6e8d (diff) | |
| download | bridge-2d37dd487f0571ce94a0e4e966931dd6697d685f.tar.zst | |
Add event passing between webapp and show
Diffstat (limited to 'webapp/run.py')
| -rwxr-xr-x | webapp/run.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/webapp/run.py b/webapp/run.py index b5c8c6f..2290f41 100755 --- a/webapp/run.py +++ b/webapp/run.py @@ -3,5 +3,11 @@ import sys sys.path.append('packages') -from app import app -app.run(threaded=True, host='', port=8000) +import threading + +from app import app, send_queue, recv_queue + +def run_server(): + app.run(threaded=True, host='', port=8000) + +server_thread = threading.Thread(target=run_server) |
