aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2024-06-22 05:01:19 -0500
committerPjotr Prins2024-06-22 05:01:19 -0500
commitcd3746df84899720312aea1c3af833aa79ad1df6 (patch)
tree78324112182ee9ce61e017ff1cf973d094a52fbc
parented6bc08db4a7d7d34d793ab7e3a5ba5bf02f6c4d (diff)
downloadgenecup-cd3746df84899720312aea1c3af833aa79ad1df6.tar.gz
Make VERSION global
-rwxr-xr-xserver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.py b/server.py
index cd58c7e..331bb60 100755
--- a/server.py
+++ b/server.py
@@ -56,6 +56,7 @@ nltk.data.path.append("./nlp/")
VERSION=None
def version():
+ global VERSION
if VERSION is None:
with open("VERSION", 'r') as file:
VERSION = file.read()