From: Bernhard Reutner-Fischer Date: Mon, 15 Nov 2010 15:27:27 +0000 (+0100) Subject: BBHandler: use os.path in inherit() X-Git-Tag: 2011-1~3136 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f56525836847fbba9096d795f9b396637d1e80a9;p=openembedded-core.git BBHandler: use os.path in inherit() (Bitbake rev: 5b85de2c71973ba490b95a5d9ab634635f395142) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index ac981b8346..d1d8657b38 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py @@ -74,7 +74,7 @@ def inherit(files, d): lineno = 0 for file in files: file = data.expand(file, d) - if file[0] != "/" and file[-8:] != ".bbclass": + if not os.path.isabs(file) and not file.endswith(".bbclass"): file = os.path.join('classes', '%s.bbclass' % file) if not file in __inherit_cache: