Commit 1378bd5b authored by Guido van Rossum's avatar Guido van Rossum

Also point TK_LIBRARY to the appropriate directory.

Changed the landmark to tclIndex, which should occur in both.
parent 7497bd3e
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment