From aaa8bb42116b8ef68eeb2d112347b353c2d37863 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 4 Apr 2000 23:32:21 +0000 Subject: [PATCH] Work the Tcl version number in the path we search for. --- Lib/lib-tk/FixTk.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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