From: Carl Hetherington Date: Fri, 20 Nov 2020 11:58:17 +0000 (+0100) Subject: Looks like we need shell=True on Windows to do things like run\tests X-Git-Url: https://main.carlh.net/gitweb/?p=cdist.git;a=commitdiff_plain;h=d0d369e34fa1767889ec817315e909c2db081ad9;hp=02b8f1135e0536f87fbc1a68a00fb8201dc5fced Looks like we need shell=True on Windows to do things like run\tests --- diff --git a/cdist b/cdist index c9f15a0..516dcad 100755 --- a/cdist +++ b/cdist @@ -257,7 +257,7 @@ def rmtree(a): def command(c): log_normal(c) try: - r = subprocess.run(shlex.split(c)) + r = subprocess.run(shlex.split(c), shell=True) if r.returncode != 0: raise Error(f'command {c} failed ({r.returncode})') except Exception as e: