def module_manifest(path):
 if (not path):
  return None
 for manifest_name in MANIFEST_NAMES:
  if os.path.isfile(opj(path, manifest_name)):
   return opj(path, manifest_name)

def module_manifest ( path ) : if ( not path ) : return None for manifest_name in MANIFEST_NAMES : if os . path . isfile ( opj ( path , manifest_name ) ) : return opj ( path , manifest_name )
returns path to module manifest if one can be found under path .