diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index b6220060df3..804c75f32d7 100644 --- a/Lib/lib-tk/FixTk.py +++ b/Lib/lib-tk/FixTk.py @@ -1,4 +1,5 @@ -import sys, os -v = os.path.join(sys.prefix, "tcl", "tcl8.3") +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