summaryrefslogtreecommitdiff
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
parent23b943b1ba4ff1b20ae6468ef4edba38f5e94f5a (diff)
downloadhaketilo-hydrilla-2780d327bbcac5df1bc7b3f45f11be42eb5781f2.tar.gz
haketilo-hydrilla-2780d327bbcac5df1bc7b3f45f11be42eb5781f2.zip
make relative malcontent dir paths work when passed on the command line
-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
/td>gnu: Order module imports in (gnu packages ntp).Tobias Geerinckx-Rice 2020-03-07gnu: ntp: Update to 4.2.8p14 [fixes Sec 3610, Sec 3596, Sec 3592].Tobias Geerinckx-Rice 2020-03-07gnu: ntp: Use HTTPS in metadata URIsTobias Geerinckx-Rice 2019-09-29gnu: tlsdate: Build against OpenSSL@1.0.Marius Bakke 2019-09-08gnu: openntpd: Fix error CA errors when using constraints.Maxim Cournoyer 2019-03-18gnu: ntp: Update to 4.2.8p13.Tobias Geerinckx-Rice 2018-08-17gnu: ntp: Update to 4.2.8p12 [fix CVE-2018-12327].Tobias Geerinckx-Rice