From: Guido van Rossum Date: Mon, 27 Mar 2000 21:46:29 +0000 (+0000) Subject: Add a call to Tcl_FindExecutable(). This was inspired by a patch by X-Git-Tag: v1.6a1~143 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e187b0eb20efe563c74a90d19f432c7b55e7ca5a;p=thirdparty%2FPython%2Fcpython.git 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). --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index d94ae36e1f12..e128c72ab4c1 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;