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