Skip to content

Commit 7295a49

Browse files
authored
Merge pull request #51 from Albireo-B/dev/fix-relative_path-str-issues
Fix [Inputs parsing] : Check if file is valid before appending path
2 parents 2948907 + 03d4bca commit 7295a49

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/vip_client/classes/VipSession.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,9 @@ def parse_value(input):
11151115
# We must use absolute paths to find the relative parts
11161116
input_dir = self._local_input_dir.resolve()
11171117
input_path = Path(input).resolve()
1118+
# Check if input_path is a valid file
1119+
if not input_path.exists():
1120+
return input
11181121
else: # Return input if `_local_input_dir` is unset
11191122
return input
11201123
# Return the part of `input_path` that is relative to `input_dir` (if relevant)

0 commit comments

Comments
 (0)