fluss2.py: K=- entfernt live gesetzte Schalter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user