mirror of https://github.com/python/cpython.git
Patch by Chris Herborth:
BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all.
This commit is contained in:
parent
fc4966b7af
commit
5cd975c678
|
@ -46,7 +46,13 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue