File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434project_root = Path (__file__ ).resolve ().parent .parent
3535TESTS_DIR = Path (__file__ ).resolve ().parent / "tests"
3636
37- # Debug path resolution
38- _dbg (f"__file__ = { __file__ } " )
39- _dbg (f"Path(__file__).resolve() = { Path (__file__ ).resolve ()} " )
40- _dbg (f"Path(__file__).resolve().parent = { Path (__file__ ).resolve ().parent } " )
41- _dbg (f"TESTS_DIR = { TESTS_DIR } " )
42- _dbg (f"TESTS_DIR.exists() = { TESTS_DIR .exists ()} " )
43- if TESTS_DIR .exists ():
44- _dbg (f"TESTS_DIR contents: { list (TESTS_DIR .glob ('*.py' ))[:5 ]} " ) # First 5 files
45-
4637# ─────────────────────────────────────────────────────────────────────────────
4738# DEBUG HELPER — use everywhere instead of bare print(..., file=sys.stderr)
4839# Set OMNIPKG_DEBUG=1 in environment to enable.
@@ -54,6 +45,14 @@ def _dbg(msg: str):
5445 if _DBG :
5546 print (f"[DEBUG-CLI] { msg } " , file = sys .stderr , flush = True )
5647
48+ # Debug path resolution
49+ _dbg (f"__file__ = { __file__ } " )
50+ _dbg (f"Path(__file__).resolve() = { Path (__file__ ).resolve ()} " )
51+ _dbg (f"Path(__file__).resolve().parent = { Path (__file__ ).resolve ().parent } " )
52+ _dbg (f"TESTS_DIR = { TESTS_DIR } " )
53+ _dbg (f"TESTS_DIR.exists() = { TESTS_DIR .exists ()} " )
54+ if TESTS_DIR .exists ():
55+ _dbg (f"TESTS_DIR contents: { list (TESTS_DIR .glob ('*.py' ))[:5 ]} " ) # First 5 files
5756
5857_VERSION_CACHE : dict = {} # exe_path -> (major, minor)
5958
You can’t perform that action at this time.
0 commit comments