diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-18 09:00:13 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-18 09:00:13 (GMT) |
commit | bb89992211d4ec95c860ed94f79cdd5f4c18afd1 (patch) | |
tree | debc2d0f3e6220c1f4c886b39422e96a11c965f4 /Lib/lib-tk | |
parent | 8affb5f2360c057176c820efc425906bdb36ee49 (diff) | |
download | cpython-bb89992211d4ec95c860ed94f79cdd5f4c18afd1.zip cpython-bb89992211d4ec95c860ed94f79cdd5f4c18afd1.tar.gz cpython-bb89992211d4ec95c860ed94f79cdd5f4c18afd1.tar.bz2 |
Make it a bit easier to test Tcl/Tk and idle from a build dir.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r-- | Lib/lib-tk/FixTk.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index a7801a2..346d3c3 100644 --- a/Lib/lib-tk/FixTk.py +++ b/Lib/lib-tk/FixTk.py @@ -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"): |