workfile template also matches against os.environ

This commit is contained in:
maxpareschi 2022-08-25 20:10:27 +02:00
parent 1c931a1606
commit 3ad9533fa8

View file

@ -408,6 +408,9 @@ def get_custom_workfile_template(
# add root dict
anatomy_context_data["root"] = anatomy.roots
# extend anatomy context with os.environ
anatomy_context_data.update(os.environ)
# get task type for the task in context
current_task_type = anatomy_context_data["task"]["type"]