Some platforms do not support changing environment variables in a job definition. provides a utility through :py~idmtools_models.templated_script_task.TemplatedScriptTask
to allow you to still modify environment variables, as demonstrated in the following example.
Here is our model.py. It imports our package and then prints the environment variable "EXAMPLE".
../../examples/cookbook/environment/variables/model.py
This is our orchestration script that defines our Python task and wrapper task with additional variables.
../../examples/cookbook/environment/variables/environment-vars.py