uncloud-cli/uncloud_cli/config.py

11 lines
219 B
Python
Raw Normal View History

import sys
2019-12-31 14:54:08 +00:00
import configparser
import os
2019-12-31 14:54:08 +00:00
config_file = os.path.expanduser('~/uncloud/uncloud.conf')
try:
2019-12-31 14:54:08 +00:00
config = configparser.ConfigParser()
config.read(config_file)
except Exception as err:
2019-12-31 14:54:08 +00:00
sys.exit(err)