mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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
|
import sys, os, _tkinter
|
||||||
v = os.path.join(sys.prefix, "tcl", "tcl8.3")
|
ver = str(_tkinter.TCL_VERSION)
|
||||||
|
v = os.path.join(sys.prefix, "tcl", "tcl"+ver)
|
||||||
if os.path.exists(os.path.join(v, "init.tcl")):
|
if os.path.exists(os.path.join(v, "init.tcl")):
|
||||||
os.environ["TCL_LIBRARY"] = v
|
os.environ["TCL_LIBRARY"] = v
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue