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
6479617e
Commit
6479617e
authored
Mar 13, 2026
by
Eric Duminil
Browse files
Move templates
parent
817a726d
Changes
2
Show whitespace changes
Inline
Side-by-side
README.md
View file @
6479617e
...
...
@@ -30,7 +30,7 @@ print(pv.dataframe)
SimStadt is located automatically via the
`SIMSTADT_FOLDER`
environment variable, or by searching
`~/Desktop`
for a
`SimStadt2_0.*/`
directory.
Workflow templates are resolved via
`SIMSTADT_TEMPLATE_PATH`
, or a
`
T
emplate/`
directory in the current working directory.
Workflow templates are resolved via
`SIMSTADT_TEMPLATE_PATH`
, or a
`
t
emplate
s
/`
directory in the current working directory.
## Development
...
...
src/simstadt/runner.py
View file @
6479617e
...
...
@@ -4,7 +4,7 @@ SimStadt is located via the SIMSTADT_FOLDER environment variable, or by globbing
~/Desktop for SimStadt2_0.*/.
Workflow templates (.flow directories) are located via the SIMSTADT_TEMPLATE_PATH
environment variable. If unset, a
T
emplate/ directory in the current working directory
environment variable. If unset, a
t
emplate
s
/ directory in the current working directory
is used as a fallback.
"""
...
...
@@ -60,11 +60,11 @@ def get_simstadt_folder() -> Path:
def
get_template_path
()
->
Path
:
if
"SIMSTADT_TEMPLATE_PATH"
in
os
.
environ
:
return
Path
(
os
.
environ
[
"SIMSTADT_TEMPLATE_PATH"
])
fallback
=
Path
.
cwd
()
/
"
T
emplate"
fallback
=
Path
.
cwd
()
/
"
t
emplate
s
"
if
fallback
.
exists
():
return
fallback
raise
ValueError
(
"No template path found. Set SIMSTADT_TEMPLATE_PATH or create a
T
emplate/ directory."
"No template path found. Set SIMSTADT_TEMPLATE_PATH or create a
t
emplate
s
/ directory."
)
...
...
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