Skip to content
Browse files

only find files

  • Loading branch information...
1 parent 3bc3762 commit 2d0fd44306f8c995fe9929809f2de483aad22ba6 @qwcode qwcode committed Nov 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 virtualenv.py
View
2 virtualenv.py
@@ -478,7 +478,7 @@ def make_exe(fn):
def _find_file(filename, dirs):
for dir in reversed(dirs):
files = glob.glob(os.path.join(dir, filename))
- if files and os.path.exists(files[0]):
+ if files and os.path.isfile(files[0]):
return True, files[0]
return False, filename

0 comments on commit 2d0fd44

Please sign in to comment.
Something went wrong with that request. Please try again.