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:
+1
-1
@@ -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"):
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user