uncloud-cli/uncloud_cli/config.py
Nico Schottelius 280043659d s/ucloud/uncloud/g
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2019-12-31 13:24:51 +01:00

9 lines
No EOL
225 B
Python

import sys
from os.path import expanduser
from decouple import Config, RepositoryEnv
try:
env_vars = Config(RepositoryEnv(expanduser("~/uncloud/uncloud-cli.conf")))
except Exception as err:
print(err)
sys.exit(1)