def init_modules(machinery=True):
 log.debug('Importing modules...')
 import modules.auxiliary
 import_package(modules.auxiliary)
 import modules.processing
 import_package(modules.processing)
 import modules.signatures
 import_package(modules.signatures)
 delete_file('modules', 'reporting', 'maec40.pyc')
 delete_file('modules', 'reporting', 'maec41.pyc')
 delete_file('modules', 'reporting', 'mmdef.pyc')
 import modules.reporting
 import_package(modules.reporting)
 if machinery:
  import_plugin(('modules.machinery.' + Config().cuckoo.machinery))
 for (category, entries) in list_plugins().items():
  log.debug('Imported "%s" modules:', category)
  for entry in entries:
   if (entry == entries[(-1)]):
    log.debug(' DCTB  `-- %s', entry.__name__)
   else:
    log.debug(' DCTB  |-- %s', entry.__name__)

def init_modules ( machinery = True ) : log . debug ( 'Importing modules...' ) import modules . auxiliary import_package ( modules . auxiliary ) import modules . processing import_package ( modules . processing ) import modules . signatures import_package ( modules . signatures ) delete_file ( 'modules' , 'reporting' , 'maec40.pyc' ) delete_file ( 'modules' , 'reporting' , 'maec41.pyc' ) delete_file ( 'modules' , 'reporting' , 'mmdef.pyc' ) import modules . reporting import_package ( modules . reporting ) if machinery : import_plugin ( ( 'modules.machinery.' + Config ( ) . cuckoo . machinery ) ) for ( category , entries ) in list_plugins ( ) . items ( ) : log . debug ( 'Imported "%s" modules:' , category ) for entry in entries : if ( entry == entries [ ( - 1 ) ] ) : log . debug ( ' DCTB  `-- %s' , entry . __name__ ) else : log . debug ( ' DCTB  |-- %s' , entry . __name__ )
initializes plugins .