2000-04-04 20:32:21 -03:00
|
|
|
import sys, os, _tkinter
|
2001-10-12 12:34:29 -03:00
|
|
|
|
2000-04-04 20:32:21 -03:00
|
|
|
ver = str(_tkinter.TCL_VERSION)
|
2001-10-12 12:34:29 -03:00
|
|
|
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
|