From 3e7db72216472050366c3059219660dea057e80b Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Wed, 8 Sep 2010 18:38:43 +0100 Subject: 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 --- bitbake/bin/bitbake | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/bin/bitbake') diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 4e6815e46e..b046156b49 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -157,6 +157,7 @@ Default BBFILES are the .bb files in the current directory.""") configuration = BBConfiguration(options) configuration.pkgs_to_build.extend(args[1:]) + configuration.initial_path = os.environ['PATH'] #server = bb.server.xmlrpc server = bb.server.none -- cgit v1.2.3-54-g00ecf