Fix not working on Python 3.10
This commit is contained in:
parent
e4f9b2e736
commit
b2e3d431b1
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue