def read_file(filepath):
with open(filepath, "r") as f:
return f.read()
def get_file_key(path, key):
data = read_file(path).split()
for pair in data:
key_value = pair.split('=')
if key_value[0] == key:
return key_value[1].strip('\"')
return ''