From: Fred Drake Date: Mon, 11 Jan 1999 15:34:55 +0000 (+0000) Subject: get_config_h_filename(): Fix to work with current Python X-Git-Tag: v1.5.2b2~386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a1b53c16538b3d503b19aa039f4a54bc757bc21;p=thirdparty%2FPython%2Fcpython.git get_config_h_filename(): Fix to work with current Python installations; it was picking up a stale config.h from an overwritten installation. --- diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index 04551a77aa58..e71ae4668a1f 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."""