]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a call to Tcl_FindExecutable(). This was inspired by a patch by
authorGuido van Rossum <guido@python.org>
Mon, 27 Mar 2000 21:46:29 +0000 (21:46 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Mar 2000 21:46:29 +0000 (21:46 +0000)
Martin von Loewis (whose more elaborate patch to use objects is still
under review).

Modules/_tkinter.c

index d94ae36e1f1211380cf57c58bfdfd16096ec9ed2..e128c72ab4c11e171271cb7f64e8097c3313d51d 100644 (file)
@@ -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;