Pfadsuche endet auf Windows an der Laufwerkswurzel

while _w != "/" lief ausserhalb eines Baums mit lesen/ endlos (Wurzel ist C:\).
Jetzt: Abbruch, wenn dirname(_w) == _w. zeit_tells, zeit_tells_spec, denkzeit_dicht_spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 01:35:18 +01:00
co-authored by Claude Opus 5.5
parent 7e65c6cfde
commit 13fe905684
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ Aufruf:
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
while _os.path.dirname(_w) != _w and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
WURZEL = _w
for _u in ("lesen", "entscheiden", "hand", "betrieb"):
+1 -1
View File
@@ -14,7 +14,7 @@ Geprueft wird:
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
while _os.path.dirname(_w) != _w and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
for _u in ("lesen", "entscheiden", "hand", "betrieb"):
_q = _os.path.join(_w, _u)
+1 -1
View File
@@ -6,7 +6,7 @@ sammeln - laufende Zeit-Sammlung nach jeder Log-Sicherung (Gedaechtnis-Feld `tim
"""
import os as _os, sys as _sys
_w = _os.path.dirname(_os.path.abspath(__file__))
while _w != "/" and not _os.path.isdir(_os.path.join(_w, "lesen")):
while _os.path.dirname(_w) != _w and not _os.path.isdir(_os.path.join(_w, "lesen")):
_w = _os.path.dirname(_w)
for _u in ("lesen", "entscheiden", "hand"):
_q = _os.path.join(_w, _u)