diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-19 14:17:10 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-19 14:17:10 +0100 |
commit | 2780d327bbcac5df1bc7b3f45f11be42eb5781f2 (patch) | |
tree | f9eeae364dbcc48ae7c922506db7f4062552bd24 /src/hydrilla | |
parent | 23b943b1ba4ff1b20ae6468ef4edba38f5e94f5a (diff) | |
download | haketilo-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')
-rw-r--r-- | src/hydrilla/server/serve.py | 2 |
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 |