Skip to content
Commit 8acce12c authored by Leon Anavi's avatar Leon Anavi Committed by Richard Purdie
Browse files

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: default avatarLeon Anavi <leon.anavi@konsulko.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 51e3d2ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment