def get_module_name(category, field, fallback_module_name=None):
 try:
  value = cp.get(category, field)
 except:
  if (fallback_module_name is not None):
   value = fallback_module_name
  else:
   raise CX((_('Cannot find config file setting for: %s') % field))
 return value

def get_module_name ( category , field , fallback_module_name = None ) : try : value = cp . get ( category , field ) except : if ( fallback_module_name is not None ) : value = fallback_module_name else : raise CX ( ( _ ( 'Cannot find config file setting for: %s' ) % field ) ) return value
get the name of the file without the extension .