gh-125235: Keep `_tkinter` TCL paths pointing to base installation on Windows (GH-125250)
(cherry picked from commit
b3aa1b5fe260382788a2df416599325ad680a5ee)
Signed-off-by: y5c4l3 <y5c4l3@proton.me>
Co-authored-by: Y5 <124019959+y5c4l3@users.noreply.github.com>
--- /dev/null
+Keep :mod:`tkinter` TCL paths in venv pointing to base installation on
+Windows.
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;
}