diff --git a/src/vip_client/classes/VipSession.py b/src/vip_client/classes/VipSession.py index 500bb0f..b20fa3f 100644 --- a/src/vip_client/classes/VipSession.py +++ b/src/vip_client/classes/VipSession.py @@ -1115,6 +1115,9 @@ def parse_value(input): # We must use absolute paths to find the relative parts input_dir = self._local_input_dir.resolve() input_path = Path(input).resolve() + # Check if input_path is a valid file + if not input_path.exists(): + return input else: # Return input if `_local_input_dir` is unset return input # Return the part of `input_path` that is relative to `input_dir` (if relevant)