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/main.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/main.py')
-rw-r--r-- | mu4web/main.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mu4web/main.py b/mu4web/main.py index 981682a..681041e 100644 --- a/mu4web/main.py +++ b/mu4web/main.py @@ -16,12 +16,12 @@ from typing import ( Optional, cast, ) -from mu import get_mail -import mu -from html_render import HTML, render_document -from user.local import LocalUser -from user.pam import PamUser -from maildir import find_maildirs, serialize_maildir +from .mu import get_mail +from . import mu +from .html_render import HTML, render_document +from .user.local import LocalUser +from .user.pam import PamUser +from .maildir import find_maildirs, serialize_maildir import flask from flask import ( |