Skip to content
Commit ede7452e authored by Leon Anavi's avatar Leon Anavi Committed by Steve Sakoman
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>
(cherry picked from commit 8acce12c)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 7f742e0f
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