提交 1806b028 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #1229 from lamblin/update_comment

Update comment after code review.
......@@ -14,8 +14,12 @@ def call_subprocess_Popen(command, **params):
except AttributeError:
startupinfo.dwFlags |= subprocess._subprocess.STARTF_USESHOWWINDOW
# Under Windows 7 64-bits, Anaconda's g++ is not found unless
# specifying "shell=True".
# Anaconda for Windows does not always provide .exe files
# in the PATH, they also have .bat files that call the corresponding
# executable. For instance, "g++.bat" is in the PATH, not "g++.exe"
# Unless "shell=True", "g++.bat" is not executed when trying to
# execute "g++" without extensions.
# (Executing "g++.bat" explicitly would also work.)
params['shell'] = True
proc = subprocess.Popen(command, startupinfo=startupinfo, **params)
return proc
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论