A VCS repository archival tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
338 B

  1. import importlib
  2. import os
  3. import codearchiver.core
  4. def _import_modules():
  5. files = os.listdir(__path__[0])
  6. for fn in files:
  7. if fn.endswith('.py') and fn != '__init__.py':
  8. # Import module if not already imported
  9. moduleName = f'codearchiver.modules.{fn[:-3]}'
  10. module = importlib.import_module(moduleName)
  11. _import_modules()