aboutsummaryrefslogtreecommitdiff
path: root/mu4web/user/local.py
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 17:09:06 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-04-24 17:16:22 +0200
commit84c3a16782e307833c1059fcd827b69d25b5bcbd (patch)
treee801314247c2a271e4fffa6286828cc22698816a /mu4web/user/local.py
parentLicense under AGPL3+ (diff)
downloadmu4web-84c3a16782e307833c1059fcd827b69d25b5bcbd.tar.gz
mu4web-84c3a16782e307833c1059fcd827b69d25b5bcbd.tar.xz
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.
Diffstat (limited to 'mu4web/user/local.py')
-rw-r--r--mu4web/user/local.py4
1 files changed, 2 insertions, 2 deletions
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