summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/process.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py
index b022e4c8f..1c790658c 100644
--- a/bitbake/lib/bb/process.py
+++ b/bitbake/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):