Fix not working on Python 3.10

This commit is contained in:
Raymond Li 2021-12-28 21:28:35 -05:00
parent e4f9b2e736
commit b2e3d431b1
Signed by: r389li
GPG Key ID: A014EA89B62BBB1B
1 changed files with 1 additions and 1 deletions

View File

@ -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}")