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

Already on GitHub? Sign in to your account

Allow FileSystemLoader to follow symlinks #71

Closed
rawsource opened this Issue Oct 28, 2011 · 2 comments

Comments

Projects
None yet
3 participants

Since python 2.6 os.walk has the 'followlinks' parameter.
Could this be made an option or even a default when using python 2.6 or higher?

Contributor

snoack commented Nov 2, 2011

When loading templates the FileSystemLoader follows symlinks. So that its list_templates() method don't follow symlinks, is definitely a bug. However just calling os.walk(..., followlinks=True) when using Python >=2.6, won't fix that bug for people using jinja2 with older versions of Python.

Owner

mitsuhiko commented Dec 13, 2013

This is done now.

@mitsuhiko mitsuhiko closed this Dec 13, 2013

MiCHiLU added a commit to MiCHiLU/jinja2-precompiler that referenced this issue Jan 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment