From c73a677d20e1ea062730b3dcd238f36bda7c6488 Mon Sep 17 00:00:00 2001 From: ljf Date: Sun, 16 Oct 2022 19:19:57 +0200 Subject: [PATCH] [fix] Relative path question --- src/utils/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/config.py b/src/utils/config.py index e767816a8..705c399c2 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -1017,8 +1017,10 @@ class PathQuestion(Question): name=option.get("name"), error="Question is mandatory", ) - - return "/" + value.strip().strip(" /") + value = value.strip().strip(" /") + if not value.startswith("~"): + value = "/" + value + return value class BooleanQuestion(Question):