Repository navigation
Drop the claim that gemdb file.py leaves the script's directory off sys.path - #129
Merged
Merged
Conversation
…ys.path Grail #847 is fixed in the pinned Grail, so the limitation the README and docs/grail.md describe no longer exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MatiasFernandez
force-pushed
the
mfernandez/syspath-doc-fixes
branch
from
October 14, 2026 21:21
451931b to
2aa7261
Compare
MatiasFernandez
marked this pull request as ready for review
October 14, 2026 21:22
jgfoster
approved these changes
Oct 14, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes the claim, in the README ("One thing differs from
python3…") and indocs/grail.md, thatgemdb file.pydoes not put the script's directory onsys.path, so a script cannot import a file next to it. The limitation no longer exists, so this PR deletes both mentions and adds nothing to replace them.Where the claim came from
CLAUDE.mdintodocs/grail.md.Why it no longer holds
mainby8c8f503e("Populate sys.path at startup…", 2026-08-29), which addsimportlib class >> ___installScriptDir___:.vendor-pins.shpins Grailbeef473, and both8c8f503eand #854's merge commit203b481are its ancestors (checked with the GitHub compare API).3ffee35,ef5cf1e). Itstools/seed.pynow says "gemdb tools/seed.pyputs this directory onsys.path".How it was tested
I ran the installed
gemdb(GemDB Python (beef473, engine 4.0.0.a4)) on macOS arm64 against this layout:sys.path[0]os.chdir("/")gemdb app/main.py(relative path, from the parent dir)…/app427cd / && gemdb /abs/app/main.py…/app427python3 app/main.py(reference)…/app427The output was identical to
python3's in every case.README line 148 ("your own
.pyfiles can be imported once their directory is onsys.path") is still accurate and isn't changed.🤖 Generated with Claude Code