Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure app template dirs are always absolute paths #4

Open
carljm opened this issue Dec 20, 2011 · 1 comment
Open

Ensure app template dirs are always absolute paths #4

carljm opened this issue Dec 20, 2011 · 1 comment

Comments

@carljm
Copy link
Owner

carljm commented Dec 20, 2011

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.

@carljm
Copy link
Owner Author

carljm commented Dec 20, 2011

(Thanks to @rmaceissoft for finding this and reporting it as part of pull #3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant