Permalink
Browse files

Merge pull request #362 from qwcode/find_file

fix for issue #361
  • Loading branch information...
jezdez committed Nov 25, 2012
2 parents 3bc3762 + 2d0fd44 commit 8392aff23097183a8854834d996dba9898106fab
Showing with 1 addition and 1 deletion.
  1. +1 −1 virtualenv.py
View
@@ -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 8392aff

Please sign in to comment.