]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Revert previous commit as it causes regression
authorvsr <vsr@opencascade.com>
Thu, 26 Nov 2015 12:27:30 +0000 (15:27 +0300)
committervsr <vsr@opencascade.com>
Thu, 26 Nov 2015 12:27:30 +0000 (15:27 +0300)
src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx

index 259e7061fd8352936747ffe8a10a1c11eb5503fd..cdf43e5e53433383515d8fbeea5a1c8bd15b841d 100644 (file)
@@ -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);