Skip to content
Snippets Groups Projects
Commit 65307ec6 authored by Klaus Reuter's avatar Klaus Reuter
Browse files

create condarc explicitly to avoid condarc configs entering from the users homedirectory

parent 44f43d64
No related branches found
No related tags found
No related merge requests found
Pipeline #191089 passed
......@@ -192,6 +192,11 @@ def create_base_environment(cfg):
proc = subprocess.Popen(cmd, shell=False, env=env)
proc.communicate()
assert(proc.returncode == 0)
condarc = {}
condarc["envs_dirs"] = [os.path.join(env_directory, 'envs'),]
condarc_yml = os.path.join(env_directory, '.condarc')
with open(condarc_yml, 'w') as fp:
fp.write(yaml.safe_dump(condarc))
def create_condainer_environment(cfg):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment