[pypy-commit] pypy stdlib-2.7.8: (alex, dreid): fix the last failing tkinter test... this took a very long time to debug

alex_gaynor noreply at buildbot.pypy.org
Wed Aug 27 23:57:59 CEST 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: stdlib-2.7.8
Changeset: r73105:53c7f5cc4006
Date: 2014-08-27 14:57 -0700
http://bitbucket.org/pypy/pypy/changeset/53c7f5cc4006/

Log:	(alex, dreid): fix the last failing tkinter test... this took a very
	long time to debug

diff --git a/lib_pypy/_tkinter/__init__.py b/lib_pypy/_tkinter/__init__.py
--- a/lib_pypy/_tkinter/__init__.py
+++ b/lib_pypy/_tkinter/__init__.py
@@ -5,6 +5,8 @@
 # This version is based on cffi, and is a translation of _tkinter.c
 # from CPython, version 2.7.4.
 
+import sys
+
 class TclError(Exception):
     pass
 
@@ -50,4 +52,6 @@
     result = []
     _flatten1(result, item, 0)
     return tuple(result)
-    
+
+
+tklib.Tcl_FindExecutable(sys.executable)
diff --git a/lib_pypy/_tkinter/tklib.py b/lib_pypy/_tkinter/tklib.py
--- a/lib_pypy/_tkinter/tklib.py
+++ b/lib_pypy/_tkinter/tklib.py
@@ -112,6 +112,7 @@
 int Tcl_DoOneEvent(int flags);
 
 int Tk_GetNumMainWindows();
+void Tcl_FindExecutable(char *argv0);
 """)
 
 # XXX find a better way to detect paths


More information about the pypy-commit mailing list