Mercurial > boomslang
diff pyntnclick/resources.py @ 769:43b49f1de828 pyntnclick-i18n
Merge i18n for before the pyntnclick split
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 26 Jan 2013 16:57:33 +0200 |
parents | d1ec9e739e23 |
children | cb71ad1fb64b |
line wrap: on
line diff
--- a/pyntnclick/resources.py Sat Jan 26 13:24:01 2013 +0200 +++ b/pyntnclick/resources.py Sat Jan 26 16:57:33 2013 +0200 @@ -33,9 +33,9 @@ The following directories are searched, in order: - * <resource_module>/<lang>/ + * /<lang>/<resource_module>/ * <resource_module>/ - * <default_resource_module>/<lang>/ + * /<lang>/<default_resource_module>/ * <default_resource_module>/ If the `language` attribute is `None`, the paths with <lang> in them @@ -44,7 +44,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.isfile(path): + if os.path.exists(path): return path raise ResourceNotFound(resource_name)