cpython/Lib/lib-tk/FixTk.py
2000-04-04 23:32:21 +00:00

6 lines
186 B
Python

import sys, os, _tkinter
ver = str(_tkinter.TCL_VERSION)
v = os.path.join(sys.prefix, "tcl", "tcl"+ver)
if os.path.exists(os.path.join(v, "init.tcl")):
os.environ["TCL_LIBRARY"] = v