Skip to content

Commit dbe4d9a

Browse files
committed
Keep _tkinter TCL paths pointing to base installation on Windows
Signed-off-by: y5c4l3 <[email protected]>
1 parent 9940093 commit dbe4d9a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)