summaryrefslogtreecommitdiff
path: root/src/hydrilla/server/serve.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-19 14:17:10 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-19 14:17:10 +0100
commit2780d327bbcac5df1bc7b3f45f11be42eb5781f2 (patch)
treef9eeae364dbcc48ae7c922506db7f4062552bd24 /src/hydrilla/server/serve.py
parent23b943b1ba4ff1b20ae6468ef4edba38f5e94f5a (diff)
downloadhaketilo-hydrilla-2780d327bbcac5df1bc7b3f45f11be42eb5781f2.tar.gz
haketilo-hydrilla-2780d327bbcac5df1bc7b3f45f11be42eb5781f2.zip
make relative malcontent dir paths work when passed on the command line
Diffstat (limited to 'src/hydrilla/server/serve.py')
-rw-r--r--src/hydrilla/server/serve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py
index 9bcfb93..a5cdee8 100644
--- a/src/hydrilla/server/serve.py
+++ b/src/hydrilla/server/serve.py
@@ -578,7 +578,7 @@ def start(malcontent_dir: Optional[str], hydrilla_project_url: Optional[str],
hydrilla_config = config.load([config_path])
if malcontent_dir is not None:
- hydrilla_config['malcontent_dir'] = malcontent_dir
+ hydrilla_config['malcontent_dir'] = str(Path(malcontent_dir).resolve())
if hydrilla_project_url is not None:
hydrilla_config['hydrilla_project_url'] = hydrilla_project_url