From 84c3a16782e307833c1059fcd827b69d25b5bcbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 24 Apr 2023 17:09:06 +0200 Subject: Change imports to relative. A testrun through `gunicorn mu4web.main:app` showed that we could either get it working by setting PYTHONPATH=$PWD/mu4web, or by changing all imports to relative. However, deploying it to the main python path didn't seem to work. Probably since i'm referencing local modules as global. --- mu4web/user/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mu4web/user/local.py') diff --git a/mu4web/user/local.py b/mu4web/user/local.py index 8de3999..37e88cb 100644 --- a/mu4web/user/local.py +++ b/mu4web/user/local.py @@ -1,5 +1,5 @@ -import password -from password import Passwords +from .. import password +from ..password import Passwords from typing import cast import os from . import User -- cgit v1.2.3