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