diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-23 03:19:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-23 03:19:34 +0300 |
commit | f0951e86ee2807e4635d96b1debbcca0c3108920 (patch) | |
tree | 185d7b47c25e25407642cd78babd4b79d603a6cd | |
parent | 194c23db0d199cf13cc72faf3a96bf8179017f20 (diff) |
fix for PyC_LineSpit() finding the current line of the frame's code object.
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index 8dfc1ec72b4..3fc1ec140c6 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -75,7 +75,7 @@ void PyC_FileAndNum(const char **filename, int *lineno) /* 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); |