Skip to content
Snippets Groups Projects
Commit 30592f17 authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

make prepare_conda_env more verbose

parent 2e25f079
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ def prepare_conda_env_cli(url):
def prepare_conda_env(url: str = None):
if url is None:
url = 'https://raw.githubusercontent.com/modsim/bug_report_example/master/conda_base_environment.yml'
print("Using default environment configuration from")
print(url)
with urllib.request.urlopen(url) as response:
with tempfile.NamedTemporaryFile(delete=False, prefix="environment_", suffix=".yaml") as tmp_file:
shutil.copyfileobj(response, tmp_file)
......
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