addon improvements/fixes

- better error reporting when an addon fails to load
- upload an addon which loads partly but then fails (eg, module loads but class register fails)
- bugfix addon loading, failier to load would leave _bpy_types._register_immediate = False
- added which change on disk are reloaded when enabling.
- bpy.path.module_names() now returns (module_name, module_path) pairs.
This commit is contained in:
2010-09-08 07:30:20 +00:00
parent 1a41d2fc29
commit b58f41e120
4 changed files with 72 additions and 25 deletions

View File

@@ -70,7 +70,7 @@ def modules_from_path(path, loaded_modules):
modules = []
for mod_name in _bpy.path.module_names(path):
for mod_name, mod_path in _bpy.path.module_names(path):
mod = _test_import(mod_name, loaded_modules)
if mod:
modules.append(mod)