diff options
author | doko@python.org <doko@python.org> | 2013-01-25 12:12:29 (GMT) |
---|---|---|
committer | doko@python.org <doko@python.org> | 2013-01-25 12:12:29 (GMT) |
commit | 3e6e2ac31d8b847f65240f333e54322880adc914 (patch) | |
tree | 838a33d8a357315cbfc457e1e129f163bae742d3 /Tools/scripts | |
parent | e7e9c321959c46f7a5c84c38ae61eda89f616e70 (diff) | |
download | cpython-3e6e2ac31d8b847f65240f333e54322880adc914.zip cpython-3e6e2ac31d8b847f65240f333e54322880adc914.tar.gz cpython-3e6e2ac31d8b847f65240f333e54322880adc914.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 |