From 7803b7c7754ec2db4d625519c2b103ac0fe08be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= <1771332+vlaci@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:19:04 +0100 Subject: [PATCH] plugins: `is_dir` was always true --- unblob/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unblob/plugins.py b/unblob/plugins.py index aa40b34fae..252b965aaf 100644 --- a/unblob/plugins.py +++ b/unblob/plugins.py @@ -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: