From cd3746df84899720312aea1c3af833aa79ad1df6 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 22 Jun 2024 05:01:19 -0500 Subject: Make VERSION global --- server.py | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3