]> code.ossystems Code Review - openembedded-core.git/commit
bitbake: save the initial PATH for use when starting a subprocess
authorJoshua Lock <josh@linux.intel.com>
Wed, 8 Sep 2010 17:38:43 +0000 (18:38 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 8 Sep 2010 18:22:37 +0000 (19:22 +0100)
commit3e7db72216472050366c3059219660dea057e80b
tree4f29cd0ea032a1620e4d439071f668bcc16dfa8c
parent8be5593777be3a6617791fc70e9aa47d54ca1676
bitbake: save the initial PATH for use when starting a subprocess

It was possible for bitbake-runtime to be run against a semi-installed
python-native resulting in tracebacks with ImportError's.

To prevent this we stash the initial PATH in the BBConfiguration when bitbake
is started and then set this in the env when launching bitbake-runtask through
subprocesses Popen() call.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/bin/bitbake
bitbake/lib/bb/runqueue.py