summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authordoko@python.org <doko@python.org>2013-01-25 12:19:35 (GMT)
committerdoko@python.org <doko@python.org>2013-01-25 12:19:35 (GMT)
commit0c77bf757f94945b9e11a3d1f44ee47466866fd0 (patch)
tree5515c7434c0a8425cf80bcc130b93526ff3eaf96 /Tools/scripts
parentd269b5e73d831b5cd870c859741f248cb8b1bc09 (diff)
parent3e6e2ac31d8b847f65240f333e54322880adc914 (diff)
downloadcpython-0c77bf757f94945b9e11a3d1f44ee47466866fd0.zip
cpython-0c77bf757f94945b9e11a3d1f44ee47466866fd0.tar.gz
cpython-0c77bf757f94945b9e11a3d1f44ee47466866fd0.tar.bz2
- Issue #17029: Let h2py search the multiarch system include directory.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/h2py.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py
index 45aa439..4f871d9 100755
--- a/Tools/scripts/h2py.py
+++ b/Tools/scripts/h2py.py
@@ -50,6 +50,11 @@ except KeyError:
searchdirs=os.environ['INCLUDE'].split(';')
except KeyError:
searchdirs=['/usr/include']
+ try:
+ searchdirs.insert(0, os.path.join('/usr/include',
+ os.environ['MULTIARCH']))
+ except KeyError:
+ pass
def main():
global filedict