[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35990] trunk/blender: [#26768] 2.57 - sys .path not initialized properly
Campbell Barton
ideasman42 at gmail.com
Mon Apr 4 07:47:05 CEST 2011
Revision: 35990
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35990
Author: campbellbarton
Date: 2011-04-04 05:47:04 +0000 (Mon, 04 Apr 2011)
Log Message:
-----------
[#26768] 2.57 - sys.path not initialized properly
we should document this properly (we only have general design docs atm), for now just correct the tooltip.
also update api example docs.
Modified Paths:
--------------
trunk/blender/doc/python_api/examples/mathutils.py
trunk/blender/source/blender/makesrna/intern/rna_userdef.c
Modified: trunk/blender/doc/python_api/examples/mathutils.py
===================================================================
--- trunk/blender/doc/python_api/examples/mathutils.py 2011-04-04 05:17:23 UTC (rev 35989)
+++ trunk/blender/doc/python_api/examples/mathutils.py 2011-04-04 05:47:04 UTC (rev 35990)
@@ -13,6 +13,6 @@
quat1 = mat.to_quaternion()
quat2 = mat3.to_quaternion()
-angle = quat1.difference(quat2)
+quat_diff = quat1.rotation_difference(quat2)
-print(angle)
+print(quat_diff.angle)
Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2011-04-04 05:17:23 UTC (rev 35989)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2011-04-04 05:47:04 UTC (rev 35990)
@@ -2807,7 +2807,8 @@
prop= RNA_def_property(srna, "script_directory", PROP_STRING, PROP_DIRPATH);
RNA_def_property_string_sdna(prop, NULL, "pythondir");
- RNA_def_property_ui_text(prop, "Python Scripts Directory", "The default directory to search for Python scripts (resets python module search path: sys.path)");
+ RNA_def_property_ui_text(prop, "Python Scripts Directory", "Alternate script path, matching the default layout with subdirs: startup, addons & modules (requires restart)");
+ /* TODO, editing should reset sys.path! */
prop= RNA_def_property(srna, "sound_directory", PROP_STRING, PROP_DIRPATH);
RNA_def_property_string_sdna(prop, NULL, "sounddir");
More information about the Bf-blender-cvs
mailing list