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>2012-10-12 07:24:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-12 07:24:47 +0400
commitf97dfdf227d1fa324a9c41bb83e53b5a46578a4d (patch)
treebb5f0eb5cb59f68e0488ebadef94806481c46056 /release
parent40186a8c1166284c27c05dd86560ada8625652ea (diff)
quiet clang static checker warning by returning an error for invalid situation getting an IDProp mapping from a PyObject.
also print the path installed to when installing an addon.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/wm.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index af33f80bdf8..21cd2b47f71 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1822,8 +1822,11 @@ class WM_OT_addon_install(Operator):
# in case a new module path was created to install this addon.
bpy.utils.refresh_script_paths()
- # TODO, should not be a warning.
- #~ self.report({'WARNING'}, "File installed to '%s'\n" % path_dest)
+ # print message
+ msg = "File %r installed into %r\n" % (pyfile, path_dest)
+ self.report({'INFO'}, msg)
+ print(msg)
+
return {'FINISHED'}
def invoke(self, context, event):