summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/FixTk.py
blob: c0af29b542a4ffd25cede48ee78b326e631f8d5b (plain)
1
2
3
4
5
6
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