]> code.ossystems Code Review - openembedded-core.git/commit
devshell: Add interactive python shell
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 May 2014 15:09:16 +0000 (16:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 May 2014 07:20:17 +0000 (08:20 +0100)
commit36734f34fe6e4b91e293234687e63c02f5b3117e
treea9ac04329b0aa9e94698451a5d06988a81f4ad19
parentce23c1cc33a015fbd184df6c16658353334ab611
devshell: Add interactive python shell

Being able to interact with the python context in the Bitbake task execution
environment has long been desireable. This patch introduces such a
mechanism. Executing "bitbake X -c devpyshell" will open a terminal connected
to a python interactive interpretor in the task context so for example you can
run commands like "d.getVar('WORKDIR')"

This version now includes readline support for command history and various other
bug fixes such as exiting cleanly compared to previous versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devshell.bbclass
scripts/oepydevshell-internal.py [new file with mode: 0755]