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:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-11-07 16:25:20 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-11-07 16:25:20 +0300
commit5725f500a11c23707426d3b79376e74d8d802920 (patch)
treee62dad571e5be63d82b86cb390ed8d7d421091b9 /blender_id/communication.py
parent487778f6774950a6fa6074ebefd137c275514940 (diff)
Blender ID: updated to latest development version
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)