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
d0f14067
Commit
d0f14067
authored
Aug 05, 2026
by
Eric Duminil
Browse files
Treat empty SIMSTADT_FOLDER as undefined
parent
2ff0ce20
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/simstadt/runner.py
View file @
d0f14067
...
...
@@ -54,8 +54,9 @@ def find_simstadt(parent_folder: Path, simstadt_glob: str = SIMSTADT2_GLOB) -> P
def
get_simstadt_folder
()
->
Path
:
if
"SIMSTADT_FOLDER"
in
os
.
environ
:
return
Path
(
os
.
environ
[
"SIMSTADT_FOLDER"
])
value
=
os
.
environ
.
get
(
"SIMSTADT_FOLDER"
,
""
).
strip
()
if
value
:
return
Path
(
value
)
return
find_simstadt
(
Path
.
home
()
/
"Desktop"
)
...
...
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