From 828e45844eaeeb70ed90b4cc85a2c114b20b6d5e Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sat, 16 Oct 2021 20:28:57 +0000 Subject: [PATCH] removed websockets from requirements.txr, fixed return code of daemon, removed websockets from hidden imports of superscript.spec --- src/cli/superscript.py | 2 +- src/cli/superscript.spec | 2 -- src/requirements.txt | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli/superscript.py b/src/cli/superscript.py index 13ebc1b..70f497f 100644 --- a/src/cli/superscript.py +++ b/src/cli/superscript.py @@ -559,7 +559,7 @@ def start(pid_path, verbose = False, profile = False, debug = False): exit_code = main(send) socket.close() f.close() - sys.exit() + sys.exit(exit_code) def stop(pid_path): try: diff --git a/src/cli/superscript.spec b/src/cli/superscript.spec index 7664ae0..04cafa7 100644 --- a/src/cli/superscript.spec +++ b/src/cli/superscript.spec @@ -10,8 +10,6 @@ a = Analysis(['superscript.py'], "dnspython", "sklearn.utils._weight_vector", "requests", - "websockets.legacy", - "websockets.legacy.server", ], hookspath=[], runtime_hooks=[], diff --git a/src/requirements.txt b/src/requirements.txt index 644ff65..88cc58b 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -15,5 +15,5 @@ pandas kivy==2.0.0rc2 -websockets +pyzmq python-daemon \ No newline at end of file