def _get_spyderplugins(plugin_path, is_io, modnames, modlist):
 if (not osp.isdir(plugin_path)):
  return
 for name in os.listdir(plugin_path):
  if (is_io and (not name.startswith(IO_PREFIX))):
   continue
  if ((not name.startswith(PLUGIN_PREFIX)) or name.startswith(IO_PREFIX)):
   continue
  _import_plugin(name, plugin_path, modnames, modlist)

def _get_spyderplugins ( plugin_path , is_io , modnames , modlist ) : if ( not osp . isdir ( plugin_path ) ) : return for name in os . listdir ( plugin_path ) : if ( is_io and ( not name . startswith ( IO_PREFIX ) ) ) : continue if ( ( not name . startswith ( PLUGIN_PREFIX ) ) or name . startswith ( IO_PREFIX ) ) : continue _import_plugin ( name , plugin_path , modnames , modlist )
scan the directory plugin_path for plugin packages and loads them .