Skip to content

Commit 5cd975c

Browse files
committed
Patch by Chris Herborth:
BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all.
1 parent fc4966b commit 5cd975c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Tools/scripts/h2py.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@
4646
try:
4747
searchdirs=string.splitfields(os.environ['INCLUDE'],';')
4848
except KeyError:
49-
searchdirs=['/usr/include']
49+
try:
50+
if string.find( sys.platform, "beos" ) == 0:
51+
searchdirs=string.splitfields(os.environ['BEINCLUDES'],';')
52+
else:
53+
raise KeyError
54+
except KeyError:
55+
searchdirs=['/usr/include']
5056

5157
def main():
5258
global filedict

0 commit comments

Comments
 (0)