aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2023-10-20 14:44:57 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-23 11:39:38 +0100
commit302969885d37a76edec3aa79181e98f8d7e28021 (patch)
treeb08a5e57ea486cb5fe9e72805f36c52c0614575f
parent1a353cda696b7f59386ad2d78a57005b90a37da4 (diff)
downloadbitbake-contrib-302969885d37a76edec3aa79181e98f8d7e28021.tar.gz
codeparser: add missing 'import os'
Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/codeparser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py
index cb068844b..cd3940943 100644
--- a/lib/bb/codeparser.py
+++ b/lib/bb/codeparser.py
@@ -62,6 +62,7 @@ def check_indent(codestr):
modulecode_deps = {}
def add_module_functions(fn, functions, namespace):
+ import os
fstat = os.stat(fn)
fixedhash = fn + ":" + str(fstat.st_size) + ":" + str(fstat.st_mtime)
for f in functions: