summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-22 21:33:05 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-22 21:33:05 (GMT)
commit07c24d13ed3902ed6d85e70602e3f77cca098b16 (patch)
tree5f624f9f268a890ab9ac6dd9ed18bf74ff66d610 /Lib/shutil.py
parent849349de05aef4de3ad1f3b5d8936b3fc79d4c84 (diff)
downloadcpython-07c24d13ed3902ed6d85e70602e3f77cca098b16.zip
cpython-07c24d13ed3902ed6d85e70602e3f77cca098b16.tar.gz
cpython-07c24d13ed3902ed6d85e70602e3f77cca098b16.tar.bz2
Issue #444582: shutil.which() respects relative paths.
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index cb8d23f..8da46d1 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -1000,7 +1000,7 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
seen = set()
for dir in path:
- dir = os.path.normcase(os.path.abspath(dir))
+ dir = os.path.normcase(dir)
if not dir in seen:
seen.add(dir)
for thefile in files: