env.sos_dict["_runtime"][k] = v
//
// prepare task variables
env.sos_dict["_runtime"]["cur_dir"] = os.getcwd()
// we need to record the verbosity and sigmode of task during creation because
// they might be changed while the task is in the queue waiting to be
// submitted (this happens when tasks are submitted from Jupyter)
env.sos_dict["_runtime"]["verbosity"] = env.verbosity
After Change
"run_mode", "run")
if "workdir" not in env.sos_dict["_runtime"]:
env.sos_dict["_runtime"]["workdir"] = path.cwd()
elif "TASK" in env.config["SOS_DEBUG"]:
env.log_to_file("TASK", f"Using specified workdir {env.sos_dict["_runtime"]["workdir"]}")