summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tinfoil.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 96275fde7f..940f9ab0d5 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -211,6 +211,19 @@ class Tinfoil:
211 211
212 self.ui_module = ui_module 212 self.ui_module = ui_module
213 213
214 # Ensure the path to bitbake's bin directory is in PATH so that things like
215 # bitbake-worker can be run (usually this is the case, but it doesn't have to be)
216 path = os.getenv('PATH').split(':')
217 bitbakebinpath = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'bin'))
218 for entry in path:
219 if entry.endswith(os.sep):
220 entry = entry[:-1]
221 if os.path.abspath(entry) == bitbakebinpath:
222 break
223 else:
224 path.insert(0, bitbakebinpath)
225 os.environ['PATH'] = ':'.join(path)
226
214 if self.server_connection: 227 if self.server_connection:
215 _server_connections.append(self.server_connection) 228 _server_connections.append(self.server_connection)
216 if config_only: 229 if config_only: