Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'blender_id/communication.py')
-rw-r--r--blender_id/communication.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/blender_id/communication.py b/blender_id/communication.py
index 5572b637..9960c338 100644
--- a/blender_id/communication.py
+++ b/blender_id/communication.py
@@ -55,7 +55,12 @@ def blender_id_endpoint(endpoint_path=None):
import os
import urllib.parse
- base_url = os.environ.get('BLENDER_ID_ENDPOINT', 'https://www.blender.org/id/')
+ base_url = os.environ.get('BLENDER_ID_ENDPOINT')
+ if base_url:
+ log.warning('Using overridden Blender ID url %s', base_url)
+ else:
+ base_url = 'https://www.blender.org/id/'
+ log.info('Using standard Blender ID url %s', base_url)
# urljoin() is None-safe for the 2nd parameter.
return urllib.parse.urljoin(base_url, endpoint_path)