summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-layers6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 88fb8ea93..119b15c17 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -31,9 +31,10 @@ def main(args):
console.setFormatter(format)
logger.addHandler(console)
+ initialenv = os.environ.copy()
bb.utils.clean_environment()
- cmds = Commands()
+ cmds = Commands(initialenv)
if args:
cmds.onecmd(' '.join(args))
else:
@@ -42,9 +43,8 @@ def main(args):
class Commands(cmd.Cmd):
- def __init__(self):
+ def __init__(self, initialenv):
cmd.Cmd.__init__(self)
- initialenv = os.environ.copy()
self.returncode = 0
self.config = Config(parse_only=True)
self.cooker = bb.cooker.BBCooker(self.config,