From 034646394be71cc9c2e3ead4c8aec2bc7a41aa9f Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Sun, 2 Feb 2025 22:38:21 -0600 Subject: [PATCH] bug fix .... --- cms/engine/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()