hof.py: keine alten .pyc mit alten Spec-Namen in der Welt

This commit is contained in:
2026-11-01 22:36:50 +01:00
parent faebc1df04
commit 420ce85ea5
+2
View File
@@ -174,6 +174,8 @@ def kopiere_grundstock():
for n in ("lauf.py", "klonlauf.py"): # der Lauf und der Beweis der Naht
kopiere(os.path.join(WURZEL, "tests", n), os.path.join(HOF, "tests", n))
kopiere(os.path.join(WURZEL, "tests", "wache", "sitecustomize.py"), os.path.join(HOF, "tests", "wache", "sitecustomize.py"))
shutil.rmtree(os.path.join(HOF, "tests", "__pycache__"), ignore_errors=True)
# sonst liegen .pyc mit alten Dateinamen herum
for d in ("sicht/scratch", "scratch"): # Arbeitsordner; entstehen sonst erst zur Laufzeit
os.makedirs(os.path.join(HOF, d), exist_ok=True)
return