This hopefully fixes the problem of having to set PATH

in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk
which will hunt around in a few common places and then set PATH
and try again, or else issue a big clarifying error message.
This commit is contained in:
Guido van Rossum 1999-01-04 18:06:45 +00:00
parent 88303194a5
commit f8d579c5e3
2 changed files with 68 additions and 1 deletions

View file

@ -2,7 +2,10 @@
__version__ = "$Revision$"
import _tkinter # If this fails your Python is not configured for Tk
import sys
if sys.platform == "win32":
import FixTk # Attempt to configure Tcl/Tk without requiring PATH
import _tkinter # If this fails your Python may not be configured for Tk
tkinter = _tkinter # b/w compat for export
TclError = _tkinter.TclError
from types import *