summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index da598c9330..85761e07c4 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1419,14 +1419,14 @@ class CookerCollectFiles(object):
1419 return pri 1419 return pri
1420 return 0 1420 return 0
1421 1421
1422 def get_bbfiles(self, path = os.getcwd()): 1422 def get_bbfiles(self):
1423 """Get list of default .bb files by reading out the current directory""" 1423 """Get list of default .bb files by reading out the current directory"""
1424 path = os.getcwd()
1424 contents = os.listdir(path) 1425 contents = os.listdir(path)
1425 bbfiles = [] 1426 bbfiles = []
1426 for f in contents: 1427 for f in contents:
1427 (root, ext) = os.path.splitext(f) 1428 if f.endswith(".bb"):
1428 if ext == ".bb": 1429 bbfiles.append(os.path.abspath(os.path.join(path, f)))
1429 bbfiles.append(os.path.abspath(os.path.join(os.getcwd(), f)))
1430 return bbfiles 1430 return bbfiles
1431 1431
1432 def find_bbfiles(self, path): 1432 def find_bbfiles(self, path):