aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/parse_py/BBHandler.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-01-03 20:57:21 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:56:13 +0000
commit739a8ce6ac688061afd55cd3c980d0e9e45c5930 (patch)
treeea9c7658c5f64b1b1e8f4d983fe8c14c164903e4 /lib/bb/parse/parse_py/BBHandler.py
parentba060160fdf1278a273fb2b77d36b8c681807ecf (diff)
downloadbitbake-contrib-739a8ce6ac688061afd55cd3c980d0e9e45c5930.tar.gz
BBHandler: use basename directly in handler()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r--lib/bb/parse/parse_py/BBHandler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py
index 5d11cc4b7..35572cb1b 100644
--- a/lib/bb/parse/parse_py/BBHandler.py
+++ b/lib/bb/parse/parse_py/BBHandler.py
@@ -121,8 +121,8 @@ def handle(fn, d, include):
else:
logger.debug(2, "BB %s: handle(data, include)", fn)
- (root, ext) = os.path.splitext(os.path.basename(fn))
- base_name = "%s%s" % (root, ext)
+ base_name = os.path.basename(fn)
+ (root, ext) = os.path.splitext(base_name)
init(d)
if ext == ".bbclass":