mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Work the Tcl version number in the path we search for.
This commit is contained in:
parent
4f3cc35cc1
commit
aaa8bb4211
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue