mirror of
https://github.com/python/cpython
synced 2024-10-18 11:16:31 +00:00
1378bd5b0b
Changed the landmark to tclIndex, which should occur in both.
7 lines
225 B
Python
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
|