diff options
author | doko@python.org <doko@python.org> | 2013-01-25 12:19:35 (GMT) |
---|---|---|
committer | doko@python.org <doko@python.org> | 2013-01-25 12:19:35 (GMT) |
commit | 0c77bf757f94945b9e11a3d1f44ee47466866fd0 (patch) | |
tree | 5515c7434c0a8425cf80bcc130b93526ff3eaf96 /Tools | |
parent | d269b5e73d831b5cd870c859741f248cb8b1bc09 (diff) | |
parent | 3e6e2ac31d8b847f65240f333e54322880adc914 (diff) | |
download | cpython-0c77bf757f94945b9e11a3d1f44ee47466866fd0.zip cpython-0c77bf757f94945b9e11a3d1f44ee47466866fd0.tar.gz cpython-0c77bf757f94945b9e11a3d1f44ee47466866fd0.tar.bz2 |
- Issue #17029: Let h2py search the multiarch system include directory.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/h2py.py | 5 |
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 |