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:
authorVilem Duha <vilem.duha@gmail.com>2019-05-31 01:14:33 +0300
committerVilem Duha <vilem.duha@gmail.com>2019-06-01 19:49:19 +0300
commit07d74a9b2e341c2eea77404b25d45791e3c46296 (patch)
tree5dad2159cb1c4850fd5ae44d8fafdb982e869544 /blenderkit/paths.py
parent7f6405130af3e693a9d806d3ebd4cd414a59b245 (diff)
BlenderKit: Further login and Oauth tweaks
Diffstat (limited to 'blenderkit/paths.py')
-rw-r--r--blenderkit/paths.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/blenderkit/paths.py b/blenderkit/paths.py
index cb460ff1..6103ce8a 100644
--- a/blenderkit/paths.py
+++ b/blenderkit/paths.py
@@ -29,11 +29,12 @@ BLENDERKIT_MANUAL = "https://youtu.be/1hVgcQhIAo8"
BLENDERKIT_MODEL_UPLOAD_INSTRUCTIONS_URL = "https://www.blenderkit.com/docs/upload/"
BLENDERKIT_MATERIAL_UPLOAD_INSTRUCTIONS_URL = "https://www.blenderkit.com/docs/uploading-material/"
BLENDERKIT_LOGIN_URL = "https://www.blenderkit.com/accounts/login"
+BLENDERKIT_OAUTH_LANDING_URL = "/oauth-landing/"
BLENDERKIT_SIGNUP_URL = "https://www.blenderkit.com/accounts/register"
BLENDERKIT_ADDON_URL = "https://www.blenderkit.com/api/v1/assets/6923b215-7df0-46f3-95ae-a2b5ff44ddd5/"
BLENDERKIT_ADDON_FILE_URL = "https://www.blenderkit.com/get-blenderkit/"
-_presets = os.path.join(bpy.utils.user_resource('SCRIPTS'), "presets")
BLENDERKIT_SETTINGS_FILENAME = os.path.join(_presets, "bkit.json")
+_presets = os.path.join(bpy.utils.user_resource('SCRIPTS'), "presets")
def get_bkit_url():
@@ -52,6 +53,9 @@ def get_bkit_url():
def get_api_url():
return get_bkit_url() + BLENDERKIT_API
+def get_oauth_landing_url():
+ return get_bkit_url() + BLENDERKIT_OAUTH_LANDING_URL
+
def default_global_dict():
from os.path import expanduser