mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -3,7 +3,6 @@ DEPENDS += "${@["python-native python", ""][(bb.data.getVar('PACKAGES', d, 1) =
|
||||
RDEPENDS += "python-core"
|
||||
|
||||
def python_dir(d):
|
||||
import os, bb
|
||||
staging_incdir = bb.data.getVar( "STAGING_INCDIR", d, 1 )
|
||||
if os.path.exists( "%s/python2.5" % staging_incdir ): return "python2.5"
|
||||
if os.path.exists( "%s/python2.4" % staging_incdir ): return "python2.4"
|
||||
|
||||
Reference in New Issue
Block a user