]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
get_module_deps3.py: Check attribute '__file__'
authorLeon Anavi <leon.anavi@konsulko.com>
Wed, 2 Nov 2022 19:18:00 +0000 (21:18 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Nov 2022 14:32:39 +0000 (14:32 +0000)
commit8acce12c1a4cf37ac312c92d62a6ae93a349dddf
tree48fe694c168ed63a319957ac0217e0c88021a06d
parent51e3d2ecef6a031105c04eb730580c17411eaf46
get_module_deps3.py: Check attribute '__file__'

Check if the module object has attribute '__file__' to fix and
avoid errors like:

AttributeError: module '_abc' has no attribute '__file__'. Did you mean: '__name__'?

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/python/python3/get_module_deps3.py