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>2011-03-22 01:17:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-22 01:17:01 +0300
commit379f55f54ca67ed29a221a57777729c422e5e3af (patch)
treea296525e4c5729974600712e6a1191fb2c7ae7e8 /release/scripts
parent2304256a6c9c5aab201334b7a9febf4532bfe27b (diff)
fix for error printing class register error, remove an unneeded check.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/modules/bpy/utils.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py
index 8f1fdc28402..f4f7d065259 100644
--- a/release/scripts/modules/bpy/utils.py
+++ b/release/scripts/modules/bpy/utils.py
@@ -182,8 +182,6 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
_global_loaded_modules[:] = []
- user_path = user_script_path()
-
for base_path in script_paths():
for path_subdir in ("startup", "modules"):
path = _os.path.join(base_path, path_subdir)
@@ -194,9 +192,6 @@ def load_scripts(reload_scripts=False, refresh_scripts=False):
if path_subdir == "modules":
continue
- if user_path != base_path and path_subdir == "":
- continue # avoid loading 2.4x scripts
-
for mod in modules_from_path(path, loaded_modules):
test_register(mod)
@@ -441,7 +436,6 @@ def register_module(module, verbose=False):
cls_func()
except:
print("bpy.utils.register_module(): failed to registering class %r" % cls)
- print("\t", path, "line", line)
import traceback
traceback.print_exc()
if verbose:
@@ -463,7 +457,6 @@ def unregister_module(module, verbose=False):
cls_func()
except:
print("bpy.utils.unregister_module(): failed to unregistering class %r" % cls)
- print("\t", path, "line", line)
import traceback
traceback.print_exc()
if verbose: