From 7257ab2956afd37964e882066617f8b0bc39ceb0 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Fri, 3 Dec 2021 11:51:27 +0100 Subject: [PATCH] split up the initializations --- aman/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aman/app.py b/aman/app.py index cbb3879..1dd2069 100644 --- a/aman/app.py +++ b/aman/app.py @@ -29,13 +29,14 @@ if 'AMAN_PATH' not in os.environ: if 'AMAN_CONFIG_PATH' not in os.environ: os.environ['AMAN_CONFIG_PATH'] = 'C:\\Repositories\\VATSIM\\AMAN\\config' +# initialize the AMAN and the interface version aman = AMAN() -app = Flask('AMAN') version = '0.0.0' - with open(os.path.join(os.environ['AMAN_PATH'], 'VERSION')) as file: version = file.readline() +# initialize the web services +app = Flask('AMAN') if __name__ == '__main__': app.run()