split up the initializations
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user