Skip to content

Commit b3aa1b5

Browse files
authored
gh-125235: Keep _tkinter TCL paths pointing to base installation on Windows (#125250)
Signed-off-by: y5c4l3 <[email protected]>
1 parent 18c7449 commit b3aa1b5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Keep :mod:`tkinter` TCL paths in venv pointing to base installation on
2+
Windows.

Modules/_tkinter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ _get_tcl_lib_path(void)
143143
struct stat stat_buf;
144144
int stat_return_value;
145145

146-
PyObject *prefix = PySys_GetObject("prefix"); // borrowed reference
146+
PyObject *prefix = PySys_GetObject("base_prefix"); // borrowed reference
147147
if (prefix == NULL) {
148148
return NULL;
149149
}

0 commit comments

Comments
 (0)