From 85fd48c32cbdb42f81b26bfb81d411d83e0898b0 Mon Sep 17 00:00:00 2001 From: Vilem Duha Date: Wed, 29 May 2019 15:01:01 +0200 Subject: BlenderKit: convert all imports to importlib + new Oauth script version (finished in next commit) +split login/signup buttons --- blenderkit/tasks_queue.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'blenderkit/tasks_queue.py') diff --git a/blenderkit/tasks_queue.py b/blenderkit/tasks_queue.py index d347ed46..eaa3bfa4 100644 --- a/blenderkit/tasks_queue.py +++ b/blenderkit/tasks_queue.py @@ -1,9 +1,33 @@ +# ##### BEGIN GPL LICENSE BLOCK ##### +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# ##### END GPL LICENSE BLOCK ##### + +if "bpy" in locals(): + from importlib import reload + + utils = reload(utils) +else: + from blenderkit import utils + import bpy from bpy.app.handlers import persistent import queue -from blenderkit import utils @persistent -- cgit v1.2.3