diff options
author | doko@python.org <doko@python.org> | 2013-01-25 12:20:46 (GMT) |
---|---|---|
committer | doko@python.org <doko@python.org> | 2013-01-25 12:20:46 (GMT) |
commit | 6951fea3abb64a3820d623efce182fefdcbae978 (patch) | |
tree | 3aa2c832db8a43b2d274737f1452f538d4f5a60c /Tools/scripts | |
parent | 35f284b75e7c4e35c57575b8839efc15fc12daad (diff) | |
parent | 0c77bf757f94945b9e11a3d1f44ee47466866fd0 (diff) | |
download | cpython-6951fea3abb64a3820d623efce182fefdcbae978.zip cpython-6951fea3abb64a3820d623efce182fefdcbae978.tar.gz cpython-6951fea3abb64a3820d623efce182fefdcbae978.tar.bz2 |
- Issue #17029: Let h2py search the multiarch system include directory.
Diffstat (limited to 'Tools/scripts')
-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 |