Skip to content

Commit 975cda0

Browse files
committed
Update 1 code files
Modified: • src/omnipkg/cli.py (+11/-12 lines) [gitship-generated]
1 parent 482e9c8 commit 975cda0

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/omnipkg/cli.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@
3434
project_root = Path(__file__).resolve().parent.parent
3535
TESTS_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

0 commit comments

Comments
 (0)