def load_custom_properties():
 filename = 'schema-image.json'
 match = CONF.find_file(filename)
 if match:
  schema_file = open(match)
  schema_data = schema_file.read()
  return json.loads(schema_data)
 else:
  msg = _('Could not find schema properties file %s. Continuing without custom properties')
  LOG.warn((msg % filename))
  return {}

def load_custom_properties ( ) : filename = 'schema-image.json' match = CONF . find_file ( filename ) if match : schema_file = open ( match ) schema_data = schema_file . read ( ) return json . loads ( schema_data ) else : msg = _ ( 'Could not find schema properties file %s. Continuing without custom properties' ) LOG . warn ( ( msg % filename ) ) return { }
find the schema properties files and load them into a dict .