Skip to content

Commit 8da360a

Browse files
committed
Don't use of shlex.split on Windows.
1 parent ee20596 commit 8da360a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_scm/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _popen_pipes(cmd, cwd):
6161

6262
def do_ex(cmd, cwd='.'):
6363
trace('cmd', repr(cmd))
64-
if not isinstance(cmd, (list, tuple)):
64+
if os.name == "posix" and not isinstance(cmd, (list, tuple)):
6565
cmd = shlex.split(cmd)
6666

6767
p = _popen_pipes(cmd, cwd)

0 commit comments

Comments
 (0)