Skip to content

Commit d697471

Browse files
author
陈帅民
committed
Prefer LEANCLOUD_* envs to LC_* ones
1 parent 6a359b3 commit d697471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leancloud/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def new_func(*args, **kwargs):
114114

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

0 commit comments

Comments
 (0)