summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/get_module_deps3.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3/get_module_deps3.py')
-rw-r--r--meta/recipes-devtools/python/python3/get_module_deps3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3/get_module_deps3.py b/meta/recipes-devtools/python/python3/get_module_deps3.py
index 1f4c982aed..0ca687d2eb 100644
--- a/meta/recipes-devtools/python/python3/get_module_deps3.py
+++ b/meta/recipes-devtools/python/python3/get_module_deps3.py
@@ -56,7 +56,7 @@ if debug == True:
56try: 56try:
57 m = importlib.import_module(current_module) 57 m = importlib.import_module(current_module)
58 # handle python packages which may not include all modules in the __init__ 58 # handle python packages which may not include all modules in the __init__
59 if os.path.basename(m.__file__) == "__init__.py": 59 if hasattr(m, '__file__') and os.path.basename(m.__file__) == "__init__.py":
60 modulepath = os.path.dirname(m.__file__) 60 modulepath = os.path.dirname(m.__file__)
61 for i in os.listdir(modulepath): 61 for i in os.listdir(modulepath):
62 if i.startswith("_") or not(i.endswith(".py")): 62 if i.startswith("_") or not(i.endswith(".py")):