Skip to content

Conversation

@shaanmajid
Copy link
Contributor

@shaanmajid shaanmajid commented Jan 22, 2026

Fixes #939

Fixes Tcl/Tk library resolution for tkinter when Tk creates additional interpreters (macOS Aqua path). The main interpreter sets tcl_library, but Tk-created interpreters don’t inherit it; temporarily setting TCL_LIBRARY around Tcl_AppInit makes the path visible to all interpreters.

See linked issue for full investigation and MRE to validate fix.

Set `TCL_LIBRARY` around `Tcl_AppInit` so all Tk-created interps can find the packaged Tcl/Tk.
@shaanmajid shaanmajid changed the title fix: propagate Tcl library path across Tk-created interps fix: propagate Tcl library path across Tk-created interpreters Jan 22, 2026
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.

Using tkinter with pytest, "Can't find a usable init.tcl" ... "This probably means that Tcl wasn't installed properly."

1 participant