From ad56b295bf1ceda6cba023e2b04919a7be7ca0b7 Mon Sep 17 00:00:00 2001 From: Gavan Fantom Date: Thu, 2 Dec 2021 14:21:35 +0000 Subject: [PATCH] Ensure app is found in the right directory --- wsgi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wsgi.py b/wsgi.py index 5f3fc78..6bec61b 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +import sys +from os import path + +sys.path.insert(0, path.abspath(path.dirname(__file__))) + from jlcchart import create_app application = create_app()