blob: 029e7cd103ee379f0c910adb912e07aa5311861d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import sys, os, _tkinter
ver = str(_tkinter.TCL_VERSION)
for t in "tcl", "tk", "tix":
key = t.upper() + "_LIBRARY"
try:
v = os.environ[key]
except KeyError:
v = os.path.join(sys.prefix, "tcl", t+ver)
if os.path.exists(os.path.join(v, "tclIndex")):
os.environ[key] = v
|