--- /usr/lib64/python2.7/lib-tk/Tkinter.py~ 2013-09-13 13:00:11.518343703 +0100 +++ /usr/lib64/python2.7/lib-tk/Tkinter.py 2013-09-13 13:02:14.588868066 +0100 @@ -1735,8 +1735,8 @@ # to avoid recursions in the getattr code in case of failure, we # ensure that self.tk is always _something_. self.tk = None + import sys, os if baseName is None: - import sys, os baseName = os.path.basename(sys.argv[0]) baseName, ext = os.path.splitext(baseName) if ext not in ('.py', '.pyc', '.pyo'):