Skip to content

Commit 861d76b

Browse files
authored
Merge pull request #679 from onekey-sec/plugin-is-dir
plugins: `is_dir` was always true
2 parents ed6ce5b + 7803b7c commit 861d76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unblob/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def import_path(self, path: Path):
5555
if path.is_file():
5656
module_name = path.stem
5757
to_import = [(module_name, path)]
58-
elif path.is_dir:
58+
elif path.is_dir():
5959
to_import = [(p.parent.name, p) for p in path.glob("*/__init__.py")]
6060
to_import.extend((p.stem, p) for p in path.glob("*.py"))
6161
else:

0 commit comments

Comments
 (0)