Skip to contentSkip to conversation

populate_sdk_ext: write_local_conf add shutil import

PATCH New Mark Hatle 1 participant 1 message Dec 17, 2024

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH 1/1 populate_sdk_ext: write_local_conf add shutil import

Add shutil import to resolve error:

Exception: NameError: name 'shutil' is not defined, Did you forget to import 'shutil'

---
 meta/classes-recipe/populate_sdk_ext.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-recipe/populate_sdk_ext.bbclass +2 -0
index 8cb27ad..3019dad 100644
@@ -289,6 +289,8 @@ def copy_uninative(d, baseoutpath):
     return uninative_checksum
 
 def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_checksum):
+    import shutil
+
     #check if custome templateconf path is set
     use_custom_templateconf = d.getVar('SDK_CUSTOM_TEMPLATECONF')
 
Signature · 1 line
1.8.3.1