Fix not working on Python 3.10

dev
Raymond Li 1 year ago
parent e4f9b2e736
commit b2e3d431b1
Signed by untrusted user: r389li
GPG Key ID: A014EA89B62BBB1B
  1. 2
      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}")

Loading…
Cancel
Save