From 5cd975c67883215472cf76b9ca48133bc80f0646 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Dec 1998 18:02:15 +0000 Subject: [PATCH] Patch by Chris Herborth: BeOS headers live in various non-standard places; luckily, there's an environment variable that lists them all. --- Tools/scripts/h2py.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 513fa4bd78a..fd4b2670bca 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -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