diff options
| author | cah <cah@ableton.com> | 2020-11-20 13:04:38 +0100 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2020-11-20 13:04:38 +0100 |
| commit | 1d822ab46c804796cd29eb19ef76b4439b14c6b3 (patch) | |
| tree | b2b86da82dcb198540a6cb56466e7c5fa1d21edc | |
| parent | c60958034f8ecfbcf6c14391d95e34e2f48c51c7 (diff) | |
Also we need to specify posix to shlex.split to avoid it removing backslashes.
| -rwxr-xr-x | cdist | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -256,8 +256,9 @@ def rmtree(a): def command(c): log_normal(c) + posix = sys.platform != 'win32' try: - r = subprocess.run(shlex.split(c), shell=True) + r = subprocess.run(shlex.split(c, posix=posix), shell=True) if r.returncode != 0: raise Error(f'command {c} failed ({r.returncode})') except Exception as e: |
