A VCS repository archival tool
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

16 satır
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()