Mercurial > pyntnclick
changeset 620:38f75cef86d0 pyntnclick
Resources are files. As stipulated by $DEITY
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 11 Feb 2012 21:45:16 +0200 |
parents | d9d1a9c4b833 |
children | dd12337423ab |
files | pyntnclick/resources.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pyntnclick/resources.py Sat Feb 11 21:40:36 2012 +0200 +++ b/pyntnclick/resources.py Sat Feb 11 21:45:16 2012 +0200 @@ -43,7 +43,7 @@ resource_name = '/'.join(resource_path_fragments) resource_name = os.path.join(*resource_name.split('/')) for path in self.get_paths(resource_name): - if os.path.exists(path): + if os.path.isfile(path): return path raise ResourceNotFound(resource_name)