Work the Tcl version number in the path we search for.

This commit is contained in:
Guido van Rossum 2000-04-04 23:32:21 +00:00
parent 4f3cc35cc1
commit aaa8bb4211
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import sys, os
v = os.path.join(sys.prefix, "tcl", "tcl8.3")
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