#include "XAOPlugin_IImportExport.hxx"
// KERNEL includes
+#include <Basics_DirUtils.hxx>
#include <utilities.h>
#include <Utils_SALOME_Exception.hxx>
// make a Python command
GEOM::TPythonDump pd(exportFunction);
+ std::string convFileName = Kernel_Utils::BackSlashToSlash(fileName);
pd << "exported = geompy.ExportXAO(" << shape;
// list of groups
}
}
pd << "], ";
- pd << "\"" << author << "\", \"" << fileName << "\", \"" << shapeFileName << "\")";
+ pd << "\"" << author << "\", \"" << convFileName.c_str() << "\", \"" << shapeFileName << "\")";
SetErrorCode(OK);
delete xaoObject;
pd << obj << ((i < nbFields) ? ", " : "");
}
}
+ std::string convFileName = Kernel_Utils::BackSlashToSlash( fileName );
pd << "]";
- pd << ") = geompy.ImportXAO(\"" << fileName << "\")";
+ pd << ") = geompy.ImportXAO(\"" << convFileName.c_str() << "\")";
delete xaoObject;
SetErrorCode(OK);