severity: warning
do_foo() {
import os
print(os.getcwd())
}
Tasks that contain python code should be prefixed by python
, as bitbake would run
the code through the shell interpreter instead.
python do_foo() {
import os
print(os.getcwd())
}