diff options
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/h2py.py | 8 |
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 |