summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-01-11 15:34:55 (GMT)
committerFred Drake <fdrake@acm.org>1999-01-11 15:34:55 (GMT)
commit6a1b53c16538b3d503b19aa039f4a54bc757bc21 (patch)
tree751fa10e4f11d1ef1710eb87bc8907c9ded66c2b /Lib
parentc66e860418d9e94b04eb1a8318384324726d3f15 (diff)
downloadcpython-6a1b53c16538b3d503b19aa039f4a54bc757bc21.zip
cpython-6a1b53c16538b3d503b19aa039f4a54bc757bc21.tar.gz
cpython-6a1b53c16538b3d503b19aa039f4a54bc757bc21.tar.bz2
get_config_h_filename(): Fix to work with current Python
installations; it was picking up a stale config.h from an overwritten installation.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/sysconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 04551a7..e71ae46 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -16,8 +16,8 @@ import sys
def get_config_h_filename():
"""Return full pathname of installed config.h file."""
- return os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3],
- "config", "config.h")
+ return os.path.join(sys.exec_prefix, "include", "python" + sys.version[:3],
+ "config.h")
def get_makefile_filename():
"""Return full pathname of installed Makefile from the Python build."""