diff Modules/_tkinter.c @ 12063:ca8880cf3674 legacy-trunk

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).
author Guido van Rossum <guido@python.org>
date Mon, 27 Mar 2000 21:46:29 +0000
parents dc65c5f6ad7c
children 9750af5e71b0
line wrap: on
line diff
--- a/Modules/_tkinter.c	Mon Mar 27 19:29:31 2000 +0000
+++ b/Modules/_tkinter.c	Mon Mar 27 21:46:29 2000 +0000
@@ -2045,6 +2045,12 @@
 	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;