Skip to content

Commit

Permalink
Merge pull request #553 from leancloud/fix-lc-env
Browse files Browse the repository at this point in the history
Prefer LEANCLOUD_* envs to LC_* ones
  • Loading branch information
cshuaimin committed Jan 18, 2024
2 parents 6a359b3 + d697471 commit 82f48c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leancloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def new_func(*args, **kwargs):

def get_url(part):
# try to use the base URL from environ
url = os.environ.get("LC_API_SERVER") or os.environ.get("LEANCLOUD_API_SERVER")
url = os.environ.get("LEANCLOUD_API_SERVER") or os.environ.get("LC_API_SERVER")
if url:
return "{}/{}{}".format(url, SERVER_VERSION, part)

Expand Down

0 comments on commit 82f48c5

Please sign in to comment.