You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Anaconda for Windows does not always provide .exe files
141
-
# in the PATH, they also have .bat files that call the corresponding
142
-
# executable. For instance, "g++.bat" is in the PATH, not "g++.exe"
143
-
# Unless "shell=True", "g++.bat" is not executed when trying to
144
-
# execute "g++" without extensions.
145
-
# (Executing "g++.bat" explicitly would also work.)
146
-
params["shell"] =True
147
140
# "If shell is True, it is recommended to pass args as a string rather than as a sequence." (cite taken from https://docs.python.org/2/library/subprocess.html#frequently-used-arguments)
148
141
# In case when command arguments have spaces, passing a command as a list will result in incorrect arguments break down, and consequently
149
142
# in "The filename, directory name, or volume label syntax is incorrect" error message.
150
143
# Passing the command as a single string solves this problem.
151
144
ifisinstance(command, list):
152
145
command=" ".join(command)
153
146
154
-
# Using the dummy file descriptors below is a workaround for a
155
-
# crash experienced in an unusual Python 2.4.4 Windows environment
0 commit comments