Skip to content

Commit

Permalink
Merge pull request #679 from onekey-sec/plugin-is-dir
Browse files Browse the repository at this point in the history
plugins: `is_dir` was always true
  • Loading branch information
vlaci authored Nov 14, 2023
2 parents ed6ce5b + 7803b7c commit 861d76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unblob/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def import_path(self, path: Path):
if path.is_file():
module_name = path.stem
to_import = [(module_name, path)]
elif path.is_dir:
elif path.is_dir():
to_import = [(p.parent.name, p) for p in path.glob("*/__init__.py")]
to_import.extend((p.stem, p) for p in path.glob("*.py"))
else:
Expand Down

0 comments on commit 861d76b

Please sign in to comment.