[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33866] trunk/blender/source/blender/ python/generic/py_capi_utils.c: fix for PyC_LineSpit() finding the current line of the frame's code object.

Campbell Barton ideasman42 at gmail.com
Thu Dec 23 01:19:34 CET 2010


Revision: 33866
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33866
Author:   campbellbarton
Date:     2010-12-23 01:19:34 +0100 (Thu, 23 Dec 2010)

Log Message:
-----------
fix for PyC_LineSpit() finding the current line of the frame's code object.

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/py_capi_utils.c

Modified: trunk/blender/source/blender/python/generic/py_capi_utils.c
===================================================================
--- trunk/blender/source/blender/python/generic/py_capi_utils.c	2010-12-22 23:16:45 UTC (rev 33865)
+++ trunk/blender/source/blender/python/generic/py_capi_utils.c	2010-12-23 00:19:34 UTC (rev 33866)
@@ -75,7 +75,7 @@
 	
 	/* when executing a script */
 	if (filename) {
-		co_filename= PyC_Object_GetAttrStringArgs(frame, 1, "f_code", "co_filename");
+		co_filename= PyC_Object_GetAttrStringArgs(frame, 2, "f_code", "co_filename");
 		if (co_filename==NULL) {
 			PyErr_SetString(PyExc_SystemError, "Could not access sys._getframe().f_code.co_filename");
 			Py_DECREF(frame);





More information about the Bf-blender-cvs mailing list