1 2 3
# THISDIR only works properly with imediate expansion as it has to run # in the context of the location its used (:=) THISDIR = "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"