reduce imports on startup

This commit is contained in:
2013-07-03 01:20:32 +00:00
parent e60a33ba07
commit ffaebe2237
2 changed files with 7 additions and 3 deletions

View File

@@ -369,7 +369,6 @@ def reset_all(reload_scripts=False):
Sets the addon state based on the user preferences.
"""
import sys
import imp
# RELEASE SCRIPTS: official scripts distributed in Blender releases
paths_list = paths()
@@ -381,6 +380,7 @@ def reset_all(reload_scripts=False):
# first check if reload is needed before changing state.
if reload_scripts:
import imp
mod = sys.modules.get(mod_name)
if mod:
imp.reload(mod)