From 07c24d13ed3902ed6d85e70602e3f77cca098b16 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 22 Jun 2012 23:33:05 +0200 Subject: Issue #444582: shutil.which() respects relative paths. --- Lib/shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/shutil.py') diff --git a/Lib/shutil.py b/Lib/shutil.py index cb8d23f32c..8da46d15a4 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: -- cgit v1.2.1