Skip to content

Commit

Permalink
path: remove normalize_to_absolute_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Cube707 committed Jun 25, 2024
1 parent b75eca0 commit d0963b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/inquirer/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit d0963b7

Please sign in to comment.