[fix] Relative path question

This commit is contained in:
ljf 2022-10-16 19:19:57 +02:00
parent 90de6fdc80
commit c73a677d20
No known key found for this signature in database

View file

@ -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):