Kaydet (Commit) 182c5908 authored tarafından Fred Drake's avatar Fred Drake

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....
üst 43ff8683
...@@ -867,7 +867,8 @@ class Tk(Misc, Wm): ...@@ -867,7 +867,8 @@ class Tk(Misc, Wm):
import sys, os import sys, os
baseName = os.path.basename(sys.argv[0]) baseName = os.path.basename(sys.argv[0])
baseName, ext = os.path.splitext(baseName) 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) self.tk = _tkinter.create(screenName, baseName, className)
if _MacOS: if _MacOS:
# Disable event scanning except for Command-Period # Disable event scanning except for Command-Period
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment