From: Guido van Rossum Date: Wed, 25 Oct 2000 17:42:13 +0000 (+0000) Subject: Also point TK_LIBRARY to the appropriate directory. X-Git-Tag: v2.1a1~821 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1378bd5b0b148f771241dd09e5b9e10f6cb321d5;p=python Also point TK_LIBRARY to the appropriate directory. Changed the landmark to tclIndex, which should occur in both. --- diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index 804c75f32d..c0af29b542 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