MCPcopy Create free account
hub / github.com/ASLP-lab/OSUM / get_env

Function get_env

OSUM/tools/ssh_launcher.py:87–93  ·  view source on GitHub ↗
(pass_envs)

Source from the content-addressed store, hash-verified

85
86
87def get_env(pass_envs):
88 envs = []
89 for k, v in list(pass_envs.items()):
90 if "()" in k or "()" in v:
91 continue
92 envs.append("export " + str(k) + "=" + str(v) + ";")
93 return " ".join(envs)
94
95
96def submit(nworker, hostfile, port, sshport, cmd):

Callers 1

submitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected