add cs_env and cs_now to loader.generate_context

This commit is contained in:
adam j hartz 2026-03-20 12:50:43 -04:00
commit c37ff3dd2b
Signed by: hz
GPG key ID: B63A0A59F5C82493

View file

@ -243,6 +243,8 @@ def generate_context(path):
defined in the `preload.py` files along the specified path
"""
ctx = {}
ctx["cs_env"] = os.environ
ctx["cs_now"] = time.now()
load_global_data(ctx)
ctx["cs_path_info"] = path
if path: