A VCS repository archival tool
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

16 rader
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()