carljm/django-icanhaz — Issue #4: Ensure app template dirs are always absolute paths
Author: carljm
Created: 2011-12-20 19:08:40+00:00
State: open

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.