summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/FixTk.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk/FixTk.py')
-rw-r--r--Lib/lib-tk/FixTk.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py
index 0726a51..8820cba 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 "TCL_LIBRARY" not in os.environ: