Commit d30cabd8 authored by Julien Cigar's avatar Julien Cigar
Browse files

import PageTemplateLoader later so that os.environ is taken into account

parent 4ebe99ec
......@@ -4,7 +4,6 @@ import os
import os.path
from cherrypy.process import plugins
from chameleon import PageTemplateLoader
__all__ = ['ChameleonTemplatePlugin']
......@@ -29,6 +28,7 @@ class ChameleonTemplatePlugin(plugins.SimplePlugin):
elif key.startswith('loader.config.'):
loader_config[key_without_prefix] = value
from chameleon import PageTemplateLoader
self.loader = PageTemplateLoader(loader_search_path,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment