Permalink
Browse files

More correct dotted template loading.

  • Loading branch information...
ralphbean committed May 9, 2012
1 parent 5e63adc commit 07b67c84dae7d181f4e0fe24a5fe8a3423c1b6ae
Showing with 2 additions and 2 deletions.
  1. +2 −2 tw2/core/templating.py
@@ -63,8 +63,8 @@ def get_engine_name(template_name, mw=None):
@memoize
def _get_dotted_filename(engine_name, template):
from_loc, location, filename = template.rsplit('.', 2)
module = __import__(location, globals(), locals(), [from_loc])
location, filename = template.rsplit('.', 1)
module = __import__(location, globals(), locals(), ['*'])
parent_dir = SEP.join(module.__file__.split(SEP)[:-1])
for extension in rendering_extension_lookup[engine_name]:

0 comments on commit 07b67c8

Please sign in to comment.