Staging
v0.5.1
Revision 8c83ec63f59b5a9512f907aa4f2c63d3ed7af7a0 authored by cvs2svn on 16 April 2001, 02:07:08 UTC, committed by cvs2svn on 16 April 2001, 02:07:08 UTC
1 parent 16e809e
Raw File
FixTk.py
import sys, os, _tkinter
ver = str(_tkinter.TCL_VERSION)
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
back to top