Skip to content

Commit

Permalink
Keep _tkinter TCL paths pointing to base installation on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: y5c4l3 <[email protected]>
  • Loading branch information
y5c4l3 committed Oct 11, 2024
1 parent 9940093 commit dbe4d9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Keep :mod:`tkinter` TCL paths in venv pointing to base installation on
Windows.
2 changes: 1 addition & 1 deletion Modules/_tkinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dbe4d9a

Please sign in to comment.