def GetConfigBinaryPathType(aff4_path):
 if (not aff4_path.Path().startswith('/config')):
  return
 components = aff4_path.RelativeName('aff4:/config').split('/')
 if ((components[0] == 'executables') and (components[1] in SUPPORTED_PLATFORMS)):
  return 'GRRSignedBlob'
 elif (components[0] == 'python_hacks'):
  return 'GRRSignedBlob'
 else:
  return

def GetConfigBinaryPathType ( aff4_path ) : if ( not aff4_path . Path ( ) . startswith ( '/config' ) ) : return components = aff4_path . RelativeName ( 'aff4:/config' ) . split ( '/' ) if ( ( components [ 0 ] == 'executables' ) and ( components [ 1 ] in SUPPORTED_PLATFORMS ) ) : return 'GRRSignedBlob' elif ( components [ 0 ] == 'python_hacks' ) : return 'GRRSignedBlob' else : return
take an aff4_path and return type or none .