From f28cfe4c0ea013d7e43abfe3bc96f6f5b26c1a2c Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Thu, 13 Feb 2025 16:59:20 +0100 Subject: [PATCH] modify code to be able run tests --- client/ayon_core/lib/env_tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/lib/env_tools.py b/client/ayon_core/lib/env_tools.py index c1bfe0c292..b02966fac2 100644 --- a/client/ayon_core/lib/env_tools.py +++ b/client/ayon_core/lib/env_tools.py @@ -122,6 +122,9 @@ def parse_env_variables_structure( if platform_name is None: platform_name = platform.system().lower() + # Separator based on OS 'os.pathsep' is ';' on Windows and ':' on Unix + sep = ";" if platform_name == "windows" else ":" + result = {} for variable, value in env.items(): # Platform specific values @@ -130,7 +133,7 @@ def parse_env_variables_structure( # Allow to have lists as values in the tool data if isinstance(value, (list, tuple)): - value = os.pathsep.join(value) + value = sep.join(value) if not value: continue