Skip to content

Commit b981104

Browse files
author
guido
committed
Patch by Chris Herborth:
BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all. git-svn-id: http://svn.python.org/projects/python/trunk@12143 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 12b7f93 commit b981104

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)