Skip to content

Commit

Permalink
修改获取环境变量方法
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed May 24, 2018
1 parent 1bb1cff commit 007adee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

# 多加一步,上传到七牛云
# 从环境变量获取 Access Key 和 Secret Key
access_key = os.environ('Access_Key')
secret_key = os.environ('Secret_Key')
access_key = os.getenv('Access_Key')
secret_key = os.getenv('Secret_Key')
# 构建鉴权对象
q = qiniu.Auth(access_key, secret_key)
# 要上传的空间
Expand Down

0 comments on commit 007adee

Please sign in to comment.