diff options
author | Fred Drake <fdrake@acm.org> | 1998-07-15 04:36:56 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-07-15 04:36:56 (GMT) |
commit | 182c590869a59d9eecc75aea86a09c7d98cd9fa8 (patch) | |
tree | 424f60dcd3291cd00f42b33c4d8ffc67a411cb6a /Lib/lib-tk/Tkinter.py | |
parent | 43ff8683fe68424b9c179ee4970bb865e11036d6 (diff) | |
download | cpython-182c590869a59d9eecc75aea86a09c7d98cd9fa8.zip cpython-182c590869a59d9eecc75aea86a09c7d98cd9fa8.tar.gz cpython-182c590869a59d9eecc75aea86a09c7d98cd9fa8.tar.bz2 |
Tk.__init__(): In computing baseName, add ".pyo" to list of dropped
extensions, and include the "." in ".pyc". Still need to get
_tkinter.c:Tkapp_New() to use baseName....
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 3a7b8c0..523db9e 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -867,7 +867,8 @@ class Tk(Misc, Wm): import sys, os baseName = os.path.basename(sys.argv[0]) baseName, ext = os.path.splitext(baseName) - if ext not in ('.py', 'pyc'): baseName = baseName + ext + if ext not in ('.py', '.pyc', '.pyo'): + baseName = baseName + ext self.tk = _tkinter.create(screenName, baseName, className) if _MacOS: # Disable event scanning except for Command-Period |