From: vsr Date: Thu, 26 Nov 2015 12:27:30 +0000 (+0300) Subject: Revert previous commit as it causes regression X-Git-Tag: V8_0_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=007a4cd246f7296b68ac2f2cfc308686f521cb1c;p=modules%2Fgeom.git Revert previous commit as it causes regression --- diff --git a/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx b/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx index 259e7061f..cdf43e5e5 100644 --- a/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx @@ -996,8 +996,9 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCurveParametric PyObject* main_dict = PyModule_GetDict(main_mod); PyObject* obj = PyRun_String(aPyScript.ToCString(), Py_file_input, main_dict, NULL); + printf("%s\n", aPyScript.ToCString()); - if (obj == NULL || obj == Py_None ) { + if (obj == NULL) { SetErrorCode("Error during executing of python script !!!"); PyErr_Print(); PyGILState_Release(gstate); @@ -1008,7 +1009,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCurveParametric PyObject * func = NULL; func = PyObject_GetAttrString(main_mod, "coordCalculator"); - + if (func == NULL){ SetErrorCode("Can't get function from python module !!!"); PyGILState_Release(gstate);