Ver código fonte

split up the initializations

Sven Czarnian 3 anos atrás
pai
commit
7257ab2956
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      aman/app.py

+ 3 - 2
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()