]> code.ossystems Code Review - openembedded-core.git/commitdiff
BBHandler: use basename directly in handler()
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 3 Jan 2011 19:57:21 +0000 (20:57 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 15:00:15 +0000 (15:00 +0000)
(Bitbake rev: 739a8ce6ac688061afd55cd3c980d0e9e45c5930)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/parse/parse_py/BBHandler.py

index d1d8657b386598a306e1c2d4e2e753474670f3b9..81554b9435bf9d7ed4d6202cbacc3ce5695aa835 100644 (file)
@@ -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":