Commit c2c6f3be by Sébastien Eustace

Fix run not executing scripts

parent ae3ba06c
# Change Log # Change Log
## [Unreleased]
### Fixed
- Fixed `run` not executing scripts.
## [0.12.9] - 2018-11-19 ## [0.12.9] - 2018-11-19
### Fixed ### Fixed
......
...@@ -95,7 +95,10 @@ def to_str(string): ...@@ -95,7 +95,10 @@ def to_str(string):
def list_to_shell_command(cmd): def list_to_shell_command(cmd):
if not WINDOWS: executable = cmd[0]
cmd = [cmd[0]] + [shell_quote(a) for a in cmd[1:]]
return subprocess.list2cmdline(cmd) if " " in executable:
executable = '"{}"'.format(executable)
cmd[0] = executable
return " ".join(cmd)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment