[Python-checkins] CVS: python/dist/src/Modules _tkinter.c,1.90,1.91

Guido van Rossum python-dev@python.org
Mon, 27 Mar 2000 16:46:32 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/home/guido/hp/mal/py-patched/Modules

Modified Files:
	_tkinter.c 
Log Message:
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).


Index: _tkinter.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/_tkinter.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -C2 -r1.90 -r1.91
*** _tkinter.c	2000/02/29 13:59:22	1.90
--- _tkinter.c	2000/03/27 21:46:29	1.91
***************
*** 2046,2049 ****
--- 2046,2055 ----
  	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;