diff options
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/FixTk.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index b622006..804c75f 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 |