From 5794f99711c006a372cd7964bcae69cefa35377e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Thu, 1 Sep 2022 12:53:37 +0200 Subject: [PATCH] remove old server.py --- server.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 server.py diff --git a/server.py b/server.py deleted file mode 100644 index 67ecfdd..0000000 --- a/server.py +++ /dev/null @@ -1,22 +0,0 @@ -from flask import Flask, request -from src.pypnnomenclature.env import DB -app_globals = {} - - -def init_app(): - if app_globals.get('app', False): - app = app_globals['app'] - else: - app = Flask(__name__) - app.config.from_pyfile('config.py') - DB.init_app(app) - - with app.app_context(): - from routes import routes - app.register_blueprint(routes, url_prefix='/habref') - return app - - -app = init_app() -if __name__ == '__main__': - app.run()