diff options
Diffstat (limited to 'wsgi.py')
-rw-r--r-- | wsgi.py | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -1,18 +1,6 @@ """Run the application""" -import os - -from qc_app import create_app - -def instance_path(): - """Retrieve the `instance_path`. Raise an exception if not defined.""" - path = os.getenv("QCAPP_INSTANCE_PATH", None) - if path is None: - raise Exception(( - "Configuration Error: Set the `QCAPP_INSTANCE_PATH` environment " - "variable.")) - - return path +from qc_app import create_app, instance_path app = create_app(instance_path()) |