in solution/automation/finance-industry/step/network-attach-cen/cen_service.py [0:0]
def get_config_value(file_path, key):
config_value = ''
with open(file_path, 'r') as f:
line = f.readline()
while True:
if not line:
break
if not line.startswith('#') and key in line:
line_kv_list = line.split('=')
config_value = line_kv_list[1].strip().strip('"').strip('\'')
break
line = f.readline()
print(config_value)
return config_value