diff options
author | doko@python.org <doko@python.org> | 2013-01-25 13:08:27 +0100 |
---|---|---|
committer | doko@python.org <doko@python.org> | 2013-01-25 13:08:27 +0100 |
commit | 4e63fbe04dc23bf58e47ce3bd307797e084b83b8 (patch) | |
tree | 8cb1347421f1c3509d48dc48eeea965d64cb19a0 /Tools/scripts/h2py.py | |
parent | b09ec9b6184dc81050449c3173238f88ab6cd875 (diff) | |
download | cpython-git-4e63fbe04dc23bf58e47ce3bd307797e084b83b8.tar.gz |
- Issue #17029: Let h2py search the multiarch system include directory.
Diffstat (limited to 'Tools/scripts/h2py.py')
-rwxr-xr-x | Tools/scripts/h2py.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index c681e236ba..c64501e604 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -58,6 +58,12 @@ except KeyError: raise KeyError except KeyError: searchdirs=['/usr/include'] + try: + searchdirs.insert(0, os.path.join('/usr/include', + os.environ['MULTIARCH'])) + except KeyError: + pass + def main(): global filedict |