2000-04-04 20:32:21 -03:00
|
|
|
import sys, os, _tkinter
|
|
|
|
ver = str(_tkinter.TCL_VERSION)
|
2000-10-25 14:42:13 -03:00
|
|
|
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
|