-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FileSystemLoader: {% import foo/test %} fails if there are templates 'foo' and 'foo/test' #821
Comments
praiskup
added a commit
to praiskup/distgen
that referenced
this issue
Mar 14, 2018
The projects/postgresql example was moved under tests/dockerfile, and is up2date. So for convenience I just added Makefile there. I noticed issues when the `container` file was presend in `pwd`, so I reported pallets/jinja/issues/821 and renamed `container` into `container_opt`. Resolves: devexp-db#51
Interesting.. seems like |
Sounds like a good candidate for a PR to fix it (against 2.10-maintenance) |
Testcase is needed? (btw. yes, ignoring ENOTDIR helps..) |
praiskup
added a commit
to praiskup/jinja
that referenced
this issue
Mar 14, 2018
praiskup
added a commit
to devexp-db/distgen
that referenced
this issue
Mar 15, 2018
The projects/postgresql example was moved under tests/dockerfile, and is up2date. So for convenience I just added Makefile there. I noticed issues when the `container` file was presend in `pwd`, so I reported pallets/jinja/issues/821 and renamed `container` into `container_opt`. Resolves: #51
praiskup
added a commit
to praiskup/jinja
that referenced
this issue
Jun 18, 2018
praiskup
added a commit
to praiskup/jinja
that referenced
this issue
Mar 20, 2019
praiskup
added a commit
to praiskup/jinja
that referenced
this issue
Mar 20, 2019
praiskup
added a commit
to praiskup/jinja
that referenced
this issue
May 6, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Consider the
FileSystemLoader([dir1, dir2])
, wheredir1
containersfoo
template, whiledir2
contains directoryfoo
with filetest
.Expected Behavior
The
env.get_template('foo/test')
should return proper template.Actual Behavior
The
env.get_template('foo/test')
raises->
IOError: [Errno 20] Not a directory: 'dir1/foo/test'
Full Traceback
Your Environment
The text was updated successfully, but these errors were encountered: