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