uncloud/config.py

9 lines
205 B
Python
Raw Normal View History

2020-01-20 07:30:12 +00:00
import configparser
from etcd_wrapper import EtcdWrapper
config = configparser.ConfigParser()
config.read('pay.conf')
etcd_client = EtcdWrapper(host=config['etcd']['host'], port=config['etcd']['port'])