From: Bernhard Reutner-Fischer Date: Mon, 15 Nov 2010 15:27:27 +0000 (+0100) Subject: BBHandler: use os.path in inherit() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b85de2c71973ba490b95a5d9ab634635f395142;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git BBHandler: use os.path in inherit() Signed-off-by: Bernhard Reutner-Fischer --- diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py index ebc2d5aeb0f..5d11cc4b723 100644 --- a/lib/bb/parse/parse_py/BBHandler.py +++ b/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: