From: Chris Larson Date: Mon, 13 Dec 2010 22:58:15 +0000 (-0700) Subject: build: set PWD in the subprocess preexec hook X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efa5485c8f9d488ba058c40734cc55296d3de6eb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git build: set PWD in the subprocess preexec hook Signed-off-by: Chris Larson --- diff --git a/lib/bb/process.py b/lib/bb/process.py index b022e4c8f9e..1c790658c92 100644 --- a/lib/bb/process.py +++ b/lib/bb/process.py @@ -1,14 +1,15 @@ -import subprocess -import signal +import os import logging +import signal +import subprocess logger = logging.getLogger('BitBake.Process') def subprocess_setup(): # Python installs a SIGPIPE handler by default. This is usually not what # non-Python subprocesses expect. - print('in preexec hook') signal.signal(signal.SIGPIPE, signal.SIG_DFL) + os.environ['PWD'] = os.getcwd() class CmdError(RuntimeError): def __init__(self, command):