From: rnv Date: Wed, 15 May 2019 15:51:58 +0000 (+0300) Subject: Fix for "16862 [CEA 16749] medcalc.MakeSlices" issue. X-Git-Tag: V9_4_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Frnv%2F16862;p=modules%2Fmed.git Fix for "16862 [CEA 16749] medcalc.MakeSlices" issue. --- diff --git a/src/MEDCalc/cmp/MEDPresentation.cxx b/src/MEDCalc/cmp/MEDPresentation.cxx index a16996489..77828e989 100644 --- a/src/MEDCalc/cmp/MEDPresentation.cxx +++ b/src/MEDCalc/cmp/MEDPresentation.cxx @@ -303,7 +303,7 @@ MEDPresentation::createSource() } std::ostringstream oss; - oss << _srcObjVar << " = pvs.MEDReader(FileName='" << _fileName << "');"; + oss << _srcObjVar << " = pvs.MEDReader(FileName=r'" << _fileName << "');"; pushAndExecPyLine(oss.str()); oss.str(""); oss << "medcalc.SelectSourceField(" << _srcObjVar << ", '" << _meshName << "', '" << _fieldName << "', '" << typ << "');";