Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-03 05:20:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-03 05:20:32 +0400
commitffaebe2237d4cdc84dc196cbbf60e1a96b0af3e4 (patch)
tree6ef43aa0d74b4654016c83fc9e2392cb5f7469d3 /release/scripts/modules/addon_utils.py
parente60a33ba0781da294f85b449473c5a38e29b3d16 (diff)
reduce imports on startup
Diffstat (limited to 'release/scripts/modules/addon_utils.py')
-rw-r--r--release/scripts/modules/addon_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index a197c20fdab..3aa4eef6392 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -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)