Don't use shell for Windows and exec commands

This commit is contained in:
Ivan Kravets
2016-08-17 17:38:20 +03:00
parent 64cc353455
commit b2e6d16221

View File

@ -261,8 +261,7 @@ def exec_command(*args, **kwargs):
default = dict(
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=system() == "Windows")
stderr=subprocess.PIPE)
default.update(kwargs)
kwargs = default