From d0963b73e03c0a7cdfe8d2f156337cbd2881cb5d Mon Sep 17 00:00:00 2001 From: Jan Wille Date: Tue, 25 Jun 2024 13:05:57 +0200 Subject: [PATCH] path: remove `normalize_to_absolute_path` --- src/inquirer/questions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/inquirer/questions.py b/src/inquirer/questions.py index e1fb427e..e388caf5 100644 --- a/src/inquirer/questions.py +++ b/src/inquirer/questions.py @@ -233,12 +233,11 @@ class Path(Text): kind = "path" - def __init__(self, name, default=None, path_type="any", exists=None, normalize_to_absolute_path=False, **kwargs): + def __init__(self, name, default=None, path_type="any", exists=None, **kwargs): super().__init__(name, default=default, **kwargs) self._path_type = path_type self._exists = exists - self._normalize_to_absolute_path = normalize_to_absolute_path if default is not None: try: @@ -283,9 +282,6 @@ def validate(self, current): def normalize_value(self, value): value = os.path.expanduser(value) - if self._normalize_to_absolute_path: - value = os.path.abspath(value) - return value