[Bf-blender-cvs] [06ef778] master: Fix T46699: copy_prev_settings() gives misleading error message when previous version's config dir doesn't exist.
Bastien Montagne
noreply at git.blender.org
Thu Nov 5 11:10:59 CET 2015
Commit: 06ef778e08d41199ffd7e2090d7f1f7e8f66febe
Author: Bastien Montagne
Date: Thu Nov 5 11:10:31 2015 +0100
Branches: master
https://developer.blender.org/rB06ef778e08d41199ffd7e2090d7f1f7e8f66febe
Fix T46699: copy_prev_settings() gives misleading error message when previous version's config dir doesn't exist.
===================================================================
M release/scripts/startup/bl_operators/wm.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index c228e33..557badb 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1402,7 +1402,7 @@ class WM_OT_copy_prev_settings(Operator):
if os.path.isdir(path_dst):
self.report({'ERROR'}, "Target path %r exists" % path_dst)
elif not os.path.isdir(path_src):
- self.report({'ERROR'}, "Source path %r exists" % path_src)
+ self.report({'ERROR'}, "Source path %r does not exist" % path_src)
else:
shutil.copytree(path_src, path_dst, symlinks=True)
More information about the Bf-blender-cvs
mailing list