Skip to content

feat(userland): set PYTHONHOME so Python finds its stdlib - #148

Open
FlareCoding wants to merge 1 commit into
masterfrom
pr/python-pythonhome
Open

feat(userland): set PYTHONHOME so Python finds its stdlib#148
FlareCoding wants to merge 1 commit into
masterfrom
pr/python-pythonhome

Conversation

@FlareCoding

Copy link
Copy Markdown
Owner

Summary

  • Python could not import its shipped standard library because getpath's landmark search failed to locate the install prefix, leaving /usr/lib/python3.12 off sys.path.
  • init now exports PYTHONHOME=/usr, Python's designed mechanism for a fixed install location, so every interpreter resolves its stdlib deterministically without relying on executable-path introspection.

Made with Cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant