summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cookerdata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 91cc4347f6..c39b568130 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -23,8 +23,8 @@ logger = logging.getLogger("BitBake")
23parselog = logging.getLogger("BitBake.Parsing") 23parselog = logging.getLogger("BitBake.Parsing")
24 24
25class ConfigParameters(object): 25class ConfigParameters(object):
26 def __init__(self, argv=sys.argv): 26 def __init__(self, argv=None):
27 self.options, targets = self.parseCommandLine(argv) 27 self.options, targets = self.parseCommandLine(argv or sys.argv)
28 self.environment = self.parseEnvironment() 28 self.environment = self.parseEnvironment()
29 29
30 self.options.pkgs_to_build = targets or [] 30 self.options.pkgs_to_build = targets or []
@@ -209,7 +209,7 @@ def findConfigFile(configfile, data):
209 return None 209 return None
210 210
211# 211#
212# We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working 212# We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working
213# up to /. If that fails, we search for a conf/bitbake.conf in BBPATH. 213# up to /. If that fails, we search for a conf/bitbake.conf in BBPATH.
214# 214#
215 215