Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
67b656e5
Commit
67b656e5
authored
Sep 21, 2026
by
Eric Duminil
Browse files
Some more infos
parent
8a713587
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/simstadt/runner.py
View file @
67b656e5
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment