]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151735)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 23:31:12 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 23:31:12 +0000 (18:31 -0500)
commitb83a217558ee30c48a3aa08f0cb7c869f9c75e96
treed08082ed4d6182d5614f73e4f315f83d9ad5c93a
parenta30acf2495e37c666bb7b3893c5da6ab7363a5e7
[3.15] gh-150836: Mount embedded Tk ZIP in _tkinter on Windows (GH-151735)

Tcl/Tk 9 may embed the Tk script library in the Tk DLL on Windows. This embedded library is not found by Tcl by default.

Mount the loaded Tk DLL as a zipfs archive before calling Tk_Init(), so Tk can find its embedded tk_library using its existing library discovery logic.

Preserve Tk_Init()'s normal path if the library is not embedded.
(cherry picked from commit c4eb3adbb42d781e2ad35bee5621f1c621c6767b)

Co-authored-by: Jonathan J. Helmus <jjhelmus@gmail.com>
Misc/NEWS.d/next/Windows/2026-06-04-18-53-18.gh-issue-150836.Wci7bZ.rst [new file with mode: 0644]
Modules/_tkinter.c
Modules/tkappinit.c
Modules/tkinter.h