diff options
| author | doko@python.org <doko@python.org> | 2013-01-25 13:12:29 +0100 | 
|---|---|---|
| committer | doko@python.org <doko@python.org> | 2013-01-25 13:12:29 +0100 | 
| commit | 3e6e2ac31d8b847f65240f333e54322880adc914 (patch) | |
| tree | 838a33d8a357315cbfc457e1e129f163bae742d3 /Tools/scripts/h2py.py | |
| parent | e7e9c321959c46f7a5c84c38ae61eda89f616e70 (diff) | |
| download | cpython-git-3e6e2ac31d8b847f65240f333e54322880adc914.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 | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 45aa439075..4f871d9010 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 | 
