From: Guido van Rossum Date: Tue, 4 Apr 2000 23:32:21 +0000 (+0000) Subject: Work the Tcl version number in the path we search for. X-Git-Tag: v1.6a2~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aaa8bb42116b8ef68eeb2d112347b353c2d37863;p=python Work the Tcl version number in the path we search for. --- diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index b6220060df..804c75f32d 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