fluss2.py: K=- entfernt live gesetzte Schalter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 03:12:41 +01:00
co-authored by Claude Opus 5.5
parent f6467c3fa8
commit 2c8dcce26f
+5 -1
View File
@@ -22,7 +22,11 @@ BELOW_NORMAL = 0x00004000
def umgebung(arm):
env = dict(os.environ)
env.update(roentgen.lies_schalter(os.path.join(BAUM, "betrieb", "kern_schalter.txt")))
env.update(dict(kv.split("=", 1) for kv in arm.split(";") if kv))
for k, v in (kv.split("=", 1) for kv in arm.split(";") if kv):
if v == "-":
env.pop(k, None) # K=- entfernt einen live gesetzten Schalter
else:
env[k] = v
env.pop("SOLVER_ZEIT", None)
return env