summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-27 21:46:29 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-27 21:46:29 (GMT)
commite187b0eb20efe563c74a90d19f432c7b55e7ca5a (patch)
tree0999f0aed474887ca1fd5c731d3d06a9d8469226 /Modules/_tkinter.c
parentdc8b7980e04f03f028493f0b060e2a0e0ccbe769 (diff)
downloadcpython-e187b0eb20efe563c74a90d19f432c7b55e7ca5a.zip
cpython-e187b0eb20efe563c74a90d19f432c7b55e7ca5a.tar.gz
cpython-e187b0eb20efe563c74a90d19f432c7b55e7ca5a.tar.bz2
Add a call to Tcl_FindExecutable(). This was inspired by a patch by
Martin von Loewis (whose more elaborate patch to use objects is still under review).
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index d94ae36..e128c72 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2045,6 +2045,12 @@ init_tkinter()
Tktt_Type.ob_type = &PyType_Type;
PyDict_SetItemString(d, "TkttType", (PyObject *)&Tktt_Type);
+#if TKMAJORMINOR >= 8000
+ /* This helps the dynamic loader; in Unicode aware Tcl versions
+ it also helps Tcl find its encodings. */
+ Tcl_FindExecutable(Py_GetProgramName());
+#endif
+
if (PyErr_Occurred())
return;