diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-10-13 14:31:35 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-10-13 14:31:35 +0400 |
commit | 3fa24c7d5f647098fb6961664e8fbf75fe812e22 (patch) | |
tree | a30796cf240172256f6be02093e9e677ce29bce7 | |
parent | f81b06cfa5a3510ae7a16d14e2b3a9b7569a9b5a (diff) |
differenciate log message for enabled/disabled modules
-rw-r--r-- | release/scripts/modules/addon_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py index 6658ee7fb2b..2aaef769c0b 100644 --- a/release/scripts/modules/addon_utils.py +++ b/release/scripts/modules/addon_utils.py @@ -323,7 +323,9 @@ def disable(module_name, default_set=True): import traceback traceback.print_exc() else: - print("addon_utils.disable", module_name, "not loaded") + if mod: state = "enabled" + else: state = "loaded" + print("addon_utils.disable: %s not %s." % (module_name, state)) # could be in more then once, unlikely but better do this just in case. addons = _bpy.context.user_preferences.addons |