def _stage_run_proc_env(op, run): env = _op_proc_env(op, run) skip_env = ("PWD", "_") with open(run.guild_path("ENV"), "w") as out: for name in sorted(env): if name in skip_env: continue out.write("export %s=%s\n" % (name, util.env_var_quote(env[name])))
def _print_op_cmd_env(env): for name, val in sorted(env.items()): cli.out("%s=%s" % (name, util.env_var_quote(val)))