add cs_env and cs_now to loader.generate_context
This commit is contained in:
parent
b815d19173
commit
c37ff3dd2b
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue