mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use posix argument only on windows
This commit is contained in:
parent
7f47367fbf
commit
004b2c5a5e
1 changed files with 4 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue