gh-125235: Keep `_tkinter` TCL paths pointing to base installation on Windows (#125250)

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
This commit is contained in:
Y5 2024-10-11 09:08:03 +00:00 committed by GitHub
parent 18c7449768
commit b3aa1b5fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
Keep :mod:`tkinter` TCL paths in venv pointing to base installation on
Windows.

View File

@ -143,7 +143,7 @@ _get_tcl_lib_path(void)
struct stat stat_buf;
int stat_return_value;
PyObject *prefix = PySys_GetObject("prefix"); // borrowed reference
PyObject *prefix = PySys_GetObject("base_prefix"); // borrowed reference
if (prefix == NULL) {
return NULL;
}