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 (pythonGH-125250)

(cherry picked from commit b3aa1b5)

Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
  • Loading branch information
y5c4l3 authored and miss-islington committed Oct 11, 2024
1 parent b3badab commit a0d88ef
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 a0d88ef

Please sign in to comment.