diff --git a/cms/engine/basic.py b/cms/engine/basic.py index 2d3dee3..1338a41 100644 --- a/cms/engine/basic.py +++ b/cms/engine/basic.py @@ -140,8 +140,9 @@ class Initializer : if 'key' in _source : # _path = _source['key'] - if 'location' in self._config['layout'] : + if 'location' in self._config['layout'] and not os.path.exists(_path): _path = os.sep.join([self._config['layout']['location'],_path]) + if os.path.exists(_path) : f = open(_path) _source['key'] = f.read()