diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-04-24 17:09:06 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-04-24 17:16:22 +0200 |
commit | 84c3a16782e307833c1059fcd827b69d25b5bcbd (patch) | |
tree | e801314247c2a271e4fffa6286828cc22698816a /mu4web/user/local.py | |
parent | License under AGPL3+ (diff) | |
download | mu4web-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.py | 4 |
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 |