Skip to content

Commit 81082f9

Browse files
committed
Small fix
1 parent 7d1864e commit 81082f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deepcave/utils/importing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def auto_import_iter(module, paths: List[str]):
1919
if os.path.basename(f).startswith('__'):
2020
continue
2121
module_name = f'{module}.' + os.path.basename(f).replace('.py', '')
22+
23+
if "pending" in module_name:
24+
continue
25+
2226
# dynamic import
2327
# https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path
2428
try:
@@ -29,6 +33,7 @@ def auto_import_iter(module, paths: List[str]):
2933
except Exception as e:
3034
logger.exception(
3135
f'Problem when loading file {f} as {module_name} from path {path}')
36+
3237
# iterate module content
3338
# https://stackoverflow.com/questions/1796180/how-can-i-get-a-list-of-all-classes-within-current-module-in-python
3439
# allow only class # inspect.isclass

0 commit comments

Comments
 (0)