cpython/Lib/lib-tk/FixTk.py
Guido van Rossum 1378bd5b0b Also point TK_LIBRARY to the appropriate directory.
Changed the landmark to tclIndex, which should occur in both.
2000-10-25 17:42:13 +00:00

7 lines
225 B
Python

import sys, os, _tkinter
ver = str(_tkinter.TCL_VERSION)
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