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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/blender_id/communication.py b/blender_id/communication.py
index 9960c338..65fdf4cf 100644
--- a/blender_id/communication.py
+++ b/blender_id/communication.py
@@ -24,6 +24,9 @@ import typing
log = logging.getLogger(__name__)
+# Can be overridden by setting the environment variable BLENDER_ID_ENDPOINT.
+BLENDER_ID_ENDPOINT = 'https://www.blender.org/id/'
+
class BlenderIdCommError(RuntimeError):
"""Raised when there was an error communicating with Blender ID"""
@@ -59,7 +62,7 @@ def blender_id_endpoint(endpoint_path=None):
if base_url:
log.warning('Using overridden Blender ID url %s', base_url)
else:
- base_url = 'https://www.blender.org/id/'
+ base_url = BLENDER_ID_ENDPOINT
log.info('Using standard Blender ID url %s', base_url)
# urljoin() is None-safe for the 2nd parameter.