Commit 67b656e5 authored by Eric Duminil's avatar Eric Duminil
Browse files

Some more infos

parent 8a713587
......@@ -68,7 +68,7 @@ def get_template_path() -> Path:
return local_templates
bundled = Path(__file__).parent / "templates"
if bundled.exists():
log.info("SIMSTADT_TEMPLATE_PATH undefined, and templates/ not present. Trying bundled templates")
log.info("SIMSTADT_TEMPLATE_PATH undefined, and templates/ not present. Trying bundled templates.")
return bundled
raise ValueError(
"No template path found. Set SIMSTADT_TEMPLATE_PATH or create a templates/ directory."
......@@ -174,6 +174,7 @@ def copy_workflow_from_template(
replaces: dict | None = None,
) -> Path:
template_path = template_path.with_suffix(".flow")
log.info("Using template from %s", template_path)
workflow_path = (project_path / destination).with_suffix(".flow")
shutil.copytree(template_path, workflow_path, dirs_exist_ok=True)
if replaces:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment