Skip to content

Commit c01cd41

Browse files
sigmaclaude
andcommitted
fix: use cwd for repo root instead of __file__ parent traversal
When pip-installed, __file__ points into site-packages, not the repo checkout. Use Path.cwd() so the entry point works from the repo root regardless of install location. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 337a300 commit c01cd41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/src/toolbox_docs/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def main():
10-
repo_root = Path(__file__).resolve().parent.parent.parent.parent
10+
repo_root = Path.cwd()
1111
packages_dir = repo_root / "packages"
1212
out_dir = repo_root / "docs" / "_site"
1313
out_dir.mkdir(parents=True, exist_ok=True)

0 commit comments

Comments
 (0)