Explorar o código

split up the initializations

Sven Czarnian %!s(int64=3) %!d(string=hai) anos
pai
achega
7257ab2956
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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()