From 2780d327bbcac5df1bc7b3f45f11be42eb5781f2 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 19 Feb 2022 14:17:10 +0100 Subject: make relative malcontent dir paths work when passed on the command line --- src/hydrilla/server/serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3