diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/FixTk.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index 804c75f..c0af29b 100644 --- a/Lib/lib-tk/FixTk.py +++ b/Lib/lib-tk/FixTk.py @@ -1,5 +1,6 @@ import sys, os, _tkinter ver = str(_tkinter.TCL_VERSION) -v = os.path.join(sys.prefix, "tcl", "tcl"+ver) -if os.path.exists(os.path.join(v, "init.tcl")): - os.environ["TCL_LIBRARY"] = v +for t in "tcl", "tk": + v = os.path.join(sys.prefix, "tcl", t+ver) + if os.path.exists(os.path.join(v, "tclIndex")): + os.environ[t.upper() + "_LIBRARY"] = v |