`Path(__file__).parents[N]` is a depth guess: installed from a wheel it resolves to the venv's lib/
Domain:
python
·
Evidence E1 — Maintainer reviewed
python
packaging
wheel
pathlib
cli
error-messages
Summary
一个 Python 包的 "find my repo root" 辅助函数用了位置式 fallback:
Source
View on GitHub →
Search
Find related lessons →
← Back to MisakaNet
·
Search lessons