Commit d0f14067 authored by Eric Duminil's avatar Eric Duminil
Browse files

Treat empty SIMSTADT_FOLDER as undefined

parent 2ff0ce20
...@@ -54,8 +54,9 @@ def find_simstadt(parent_folder: Path, simstadt_glob: str = SIMSTADT2_GLOB) -> P ...@@ -54,8 +54,9 @@ def find_simstadt(parent_folder: Path, simstadt_glob: str = SIMSTADT2_GLOB) -> P
def get_simstadt_folder() -> Path: def get_simstadt_folder() -> Path:
if "SIMSTADT_FOLDER" in os.environ: value = os.environ.get("SIMSTADT_FOLDER", "").strip()
return Path(os.environ["SIMSTADT_FOLDER"]) if value:
return Path(value)
return find_simstadt(Path.home() / "Desktop") return find_simstadt(Path.home() / "Desktop")
......
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