Hello All,
We met a problem about using Python Bindings to submit jobs.
Some environment variables with special format can not be parsed normally.
Here is what we're doing on parsing environment variables:
environment = ""
for key in os.environ.keys():
if "BASH_FUNC_module" in key or "TERMCAP" in key :
continue
environment = environment+" "+key+"="+os.environ[key].replace(' ','\' \'')
cmd_dict["Environment"] = environment
The variable "BASH_FUNC_module" is:
BASH_FUNC_module()=() { eval `/usr/bin/modulecmd bash $*`
}
This variable caused parsing error, we have to filter it out.
Does anyone know how we can deal with this format of variables?
Looking forward any help, thanks in advance!
Cheers,
Xiaowei
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to
htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/