TASK_NAME and TASK_DIR variables are avaialble in config file now

This commit is contained in:
ganeshgore 2020-07-27 14:14:57 -06:00
parent 0e46e0d857
commit 45af056304
1 changed files with 2 additions and 0 deletions

View File

@ -190,6 +190,8 @@ def generate_each_task_actions(taskname):
# Read task configuration file and check consistency
task_conf = ConfigParser(allow_no_value=True,
interpolation=ExtendedInterpolation())
script_env_vars['PATH']["TASK_NAME"] = "/".join(taskname)
script_env_vars['PATH']["TASK_DIR"] = curr_task_dir
task_conf.read_dict(script_env_vars)
task_conf.read_file(open(curr_task_conf_file))