converted to python package
This commit is contained in:
parent
51e1130071
commit
8bb860024a
23 changed files with 110 additions and 309 deletions
9
ucloud_cli/config.py
Normal file
9
ucloud_cli/config.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import sys
|
||||
from os.path import expanduser
|
||||
from decouple import Config, RepositoryEnv
|
||||
|
||||
try:
|
||||
env_vars = Config(RepositoryEnv(expanduser("~/.ucloud.conf")))
|
||||
except Exception as err:
|
||||
print(err)
|
||||
sys.exit(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue