From b2e3d431b1a83f20bdff440a4bd2d2b8deee1c76 Mon Sep 17 00:00:00 2001 From: Raymond Li Date: Tue, 28 Dec 2021 21:28:35 -0500 Subject: [PATCH] Fix not working on Python 3.10 --- projects/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/__init__.py b/projects/__init__.py index 9cad58a..efb40f6 100644 --- a/projects/__init__.py +++ b/projects/__init__.py @@ -9,7 +9,7 @@ from importlib import import_module # iterate through the modules in the current package package_dir = Path(__file__).resolve().parent -for (_, module_name, _) in iter_modules([package_dir]): +for (_, module_name, _) in iter_modules([str(package_dir)]): # import the module and iterate through its attributes module = import_module(f"{__name__}.{module_name}")