def get_modules():
 modules = []
 module_list = exec_action('modules', 'list', action_parameter='--only-names')
 if (not module_list):
  return None
 for module in module_list:
  if (module not in ['help', 'usage', 'version']):
   modules.append(module)
 return modules

def get_modules ( ) : modules = [ ] module_list = exec_action ( 'modules' , 'list' , action_parameter = '--only-names' ) if ( not module_list ) : return None for module in module_list : if ( module not in [ 'help' , 'usage' , 'version' ] ) : modules . append ( module ) return modules
given a package directory return a list of all available python modules in the package and its subpackages :type package: str .