Skip to content

Commit

Permalink
pythongh-125235: Keep _tkinter TCL paths pointing to base installat…
Browse files Browse the repository at this point in the history
…ion on Windows (python#125250)

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
  • Loading branch information
y5c4l3 authored Oct 11, 2024
1 parent 18c7449 commit b3aa1b5
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 b3aa1b5

Please sign in to comment.