Don't strip " from PATH entries

There shouldn't be any, but if they're there perhaps they're there for a
reason.
This commit is contained in:
Peter Eckersley
2016-03-30 17:50:22 -07:00
parent 526aa7d5ae
commit 8f8d80e7d1
-1
View File
@@ -91,7 +91,6 @@ def _which(program):
return program
else:
for path in os.environ["PATH"].split(os.pathsep):
path = path.strip('"')
exe_file = os.path.join(path, program)
if _is_exe(exe_file):
return exe_file