Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 873 Bytes

environment.rst

File metadata and controls

24 lines (18 loc) · 873 Bytes

Environment

Modifying environment variables on platforms without native support

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