mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Also point TK_LIBRARY to the appropriate directory.
Changed the landmark to tclIndex, which should occur in both.
This commit is contained in:
parent
7497bd3e3d
commit
1378bd5b0b
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue