Private
Public Access
fix(tier2): move failure-report default inside Tier 2 clone
The default _failures_dir() used C:\\Users\\Ed\\AppData\\Local\\manual_slop\\tier2_failures\\ which contradicted the user's 'NEVER USE APPDATA' directive (2026-06-18). New default: scripts/tier2/failures/ (Path.cwd()-relative). The TIER2_FAILURES_DIR env-var override is preserved as an escape hatch. Refs: conductor/tracks/tier2_no_appdata_20260618
This commit is contained in:
@@ -16,10 +16,10 @@ from scripts.tier2.failcount import FailcountState
|
|||||||
|
|
||||||
|
|
||||||
def _failures_dir() -> Path:
|
def _failures_dir() -> Path:
|
||||||
return Path(os.environ.get(
|
base_str = os.environ.get("TIER2_FAILURES_DIR")
|
||||||
"TIER2_FAILURES_DIR",
|
if base_str:
|
||||||
r"C:\Users\Ed\AppData\Local\manual_slop\tier2_failures",
|
return Path(base_str)
|
||||||
))
|
return Path.cwd() / "scripts" / "tier2" / "failures"
|
||||||
|
|
||||||
|
|
||||||
def compute_report_path(track_name: str, now: datetime) -> Path:
|
def compute_report_path(track_name: str, now: datetime) -> Path:
|
||||||
|
|||||||
Reference in New Issue
Block a user