mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Make it a bit easier to test Tcl/Tk and idle from a build dir.
This commit is contained in:
parent
8affb5f236
commit
bb89992211
2 changed files with 19 additions and 0 deletions
|
@ -11,6 +11,10 @@ import sys, os
|
|||
# the real Tcl library will do.
|
||||
|
||||
prefix = os.path.join(sys.prefix,"tcl")
|
||||
if not os.path.exists(prefix):
|
||||
# devdir/../tcltk/lib
|
||||
prefix = os.path.join(sys.prefix, os.path.pardir, "tcltk", "lib")
|
||||
prefix = os.path.abspath(prefix)
|
||||
# if this does not exist, no further search is needed
|
||||
if os.path.exists(prefix):
|
||||
if not os.environ.has_key("TCL_LIBRARY"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue