django-icanhaz
django-icanhaz copied to clipboard
Ensure app template dirs are always absolute paths
If an app is imported via a relative entry on sys.path, then os.path.dirname(mod.__file__) could return a relative path, which would result in a relative app template dir path. This causes problems with the startswith sanity check in FilesystemFinder.find. The fix is to add an abspath in _get_app_template_dirs to ensure that it always returns full absolute paths.
(Thanks to @rmaceissoft for finding this and reporting it as part of pull #3).