mirror of
1
0
Fork 0

don't set executable arg to subprocess.call on Windows

This commit is contained in:
SuJiKiNen 2019-02-04 22:41:16 +08:00
parent cd04d886fe
commit e41afad03c
1 changed files with 2 additions and 0 deletions

View File

@ -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)