Commits

Ralph Bean  committed b024ccc

More correct dotted template loading.

  • Participants
  • Parent commits 3bb3686

Comments (0)

Files changed (1)

File tw2/core/templating.py

 
 @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]: