From 004b2c5a5e78632d686eb345cd42d35883621bdf Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 16 Sep 2021 15:13:36 +0200 Subject: [PATCH] use posix argument only on windows --- openpype/lib/execute.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openpype/lib/execute.py b/openpype/lib/execute.py index e93fc3efdd..2dbee4e674 100644 --- a/openpype/lib/execute.py +++ b/openpype/lib/execute.py @@ -159,9 +159,11 @@ def split_command_to_list(string_command): Returns: list: Command separated into individual arguments. """ + kwargs = {} + # Use 'posix' argument only on windows if platform.system().lower() == "windows": - posix = False - return shlex.split(string_command, posix=posix) + kwargs["posix"] = False + return shlex.split(string_command, **kwargs) def get_pype_execute_args(*args):