diff options
author | Vilem Duha <vilem.duha@gmail.com> | 2019-05-29 16:01:01 +0300 |
---|---|---|
committer | Vilem Duha <vilem.duha@gmail.com> | 2019-06-01 19:49:18 +0300 |
commit | 85fd48c32cbdb42f81b26bfb81d411d83e0898b0 (patch) | |
tree | bef0f8366dbe1aca4953cad20e87051468c36651 /blenderkit/upload_bg.py | |
parent | 88d0e75f1f35af1ea208565a6eb187162ed8451b (diff) |
BlenderKit: convert all imports to importlib
+ new Oauth script version (finished in next commit)
+split login/signup buttons
Diffstat (limited to 'blenderkit/upload_bg.py')
-rw-r--r-- | blenderkit/upload_bg.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/blenderkit/upload_bg.py b/blenderkit/upload_bg.py index a1cfaf11..7a0dc28c 100644 --- a/blenderkit/upload_bg.py +++ b/blenderkit/upload_bg.py @@ -16,13 +16,22 @@ # # ##### END GPL LICENSE BLOCK ##### + +if "bpy" in locals(): + from importlib import reload + + paths = reload(paths) + append_link = reload(append_link) + bg_blender = reload(bg_blender) + utils = reload(utils) +else: + from blenderkit import paths, append_link, bg_blender, utils + import sys, json, os, time import requests import logging import bpy -import addon_utils -from blenderkit import paths, append_link, bg_blender, utils BLENDERKIT_EXPORT_DATA = sys.argv[-1] |