split up the initializations

This commit is contained in:
Sven Czarnian
2021-12-03 11:51:27 +01:00
vanhempi 9b9746e9bb
commit 7257ab2956

Näytä tiedosto

@@ -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()