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/maildir.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/maildir.py')
-rw-r--r-- | mu4web/maildir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mu4web/maildir.py b/mu4web/maildir.py index 8b01f6d..c2abc16 100644 --- a/mu4web/maildir.py +++ b/mu4web/maildir.py @@ -1,8 +1,8 @@ from dataclasses import dataclass import os.path -from html_render import HTML -from util import find +from .html_render import HTML +from .util import find from urllib.parse import urlencode |