lazy load modules for more scripts.

This commit is contained in:
Campbell Barton
2011-02-27 14:16:32 +00:00
parent 87acf919a5
commit 52f92b4cb1
6 changed files with 70 additions and 49 deletions

View File

@@ -19,7 +19,6 @@
# <pep8 compliant>
import bpy
import os
import shutil
import addon_utils
from bpy.props import StringProperty, BoolProperty, EnumProperty
@@ -1073,6 +1072,8 @@ class WM_OT_addon_install(bpy.types.Operator):
def execute(self, context):
import traceback
import zipfile
import shutil
pyfile = self.filepath
# dont use bpy.utils.script_paths("addons") because we may not be able to write to it.