From 03d4bca41cefd01b4176f8d95f7e21f92efc316f Mon Sep 17 00:00:00 2001 From: "Guillaume V." Date: Wed, 4 Feb 2026 11:33:07 +0100 Subject: [PATCH] Fix [Inputs parsing] : Check if file is valid before appending path --- src/vip_client/classes/VipSession.py | 3 +++ 1 file changed, 3 insertions(+) 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)