summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-17 18:02:15 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-17 18:02:15 (GMT)
commit5cd975c67883215472cf76b9ca48133bc80f0646 (patch)
tree9188537677976aeeb9681f02b9c0df6b82a904c4 /Tools/scripts
parentfc4966b7af0cc34289f217613e0ef53c8b56b39b (diff)
downloadcpython-5cd975c67883215472cf76b9ca48133bc80f0646.zip
cpython-5cd975c67883215472cf76b9ca48133bc80f0646.tar.gz
cpython-5cd975c67883215472cf76b9ca48133bc80f0646.tar.bz2
Patch by Chris Herborth:
BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/h2py.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py
index 513fa4b..fd4b267 100755
--- a/Tools/scripts/h2py.py
+++ b/Tools/scripts/h2py.py
@@ -46,7 +46,13 @@ except KeyError:
try:
searchdirs=string.splitfields(os.environ['INCLUDE'],';')
except KeyError:
- searchdirs=['/usr/include']
+ try:
+ if string.find( sys.platform, "beos" ) == 0:
+ searchdirs=string.splitfields(os.environ['BEINCLUDES'],';')
+ else:
+ raise KeyError
+ except KeyError:
+ searchdirs=['/usr/include']
def main():
global filedict