From e41afad03cd726d9c5ba2dd9a96fb0037a83d95d Mon Sep 17 00:00:00 2001 From: SuJiKiNen Date: Mon, 4 Feb 2019 22:41:16 +0800 Subject: [PATCH] don't set executable arg to subprocess.call on Windows --- dotbot/plugins/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotbot/plugins/shell.py b/dotbot/plugins/shell.py index 06a9a89..a2d4d4b 100644 --- a/dotbot/plugins/shell.py +++ b/dotbot/plugins/shell.py @@ -55,6 +55,8 @@ class Shell(dotbot.Plugin): else: self._log.lowinfo('%s [%s]' % (msg, cmd)) executable = os.environ.get('SHELL') + if os.name == 'nt': + executable = None ret = subprocess.call(cmd, shell=True, stdin=stdin, stdout=stdout, stderr=stderr, cwd=self._context.base_directory(), executable=executable)