Python3 porting: python3 instead python and deepcopy.

This commit is contained in:
rnv 2017-06-01 17:07:32 +03:00
parent 21c9336a4d
commit bf9ebfec9f
3 changed files with 8 additions and 8 deletions

View File

@ -1475,7 +1475,7 @@ void SMESH_Mesh::ExportSAUV(const char *file,
#ifdef WIN32
cmd = "%PYTHONBIN% ";
#else
cmd = "python ";
cmd = "python3 ";
#endif
cmd += "-c \"";
cmd += "from medutilities import my_remove ; my_remove(r'" + medfilename + "')";
@ -1487,7 +1487,7 @@ void SMESH_Mesh::ExportSAUV(const char *file,
#ifdef WIN32
cmd = "%PYTHONBIN% ";
#else
cmd = "python ";
cmd = "python3 ";
#endif
cmd += "-c \"";
cmd += "from medutilities import convert ; convert(r'" + medfilename + "', 'MED', 'GIBI', 1, r'" + file + "')";
@ -1496,7 +1496,7 @@ void SMESH_Mesh::ExportSAUV(const char *file,
#ifdef WIN32
cmd = "%PYTHONBIN% ";
#else
cmd = "python ";
cmd = "python3 ";
#endif
cmd += "-c \"";
cmd += "from medutilities import my_remove ; my_remove(r'" + medfilename + "')";

View File

@ -1283,7 +1283,7 @@ SMESH::mesh_array* SMESH_Gen_i::CreateMeshesFromSAUV( const char* theFileName,
#ifdef WIN32
cmd = "%PYTHONBIN% ";
#else
cmd = "python ";
cmd = "python3 ";
#endif
cmd += "-c \"";
cmd += "from medutilities import convert ; convert(r'" + sauvfilename + "', 'GIBI', 'MED', 1, r'" + medfilename + "')";
@ -1293,7 +1293,7 @@ SMESH::mesh_array* SMESH_Gen_i::CreateMeshesFromSAUV( const char* theFileName,
#ifdef WIN32
cmd = "%PYTHONBIN% ";
#else
cmd = "python ";
cmd = "python3 ";
#endif
cmd += "-c \"";
cmd += "from medutilities import my_remove ; my_remove(r'" + medfilename + "')";

View File

@ -5124,7 +5124,7 @@ class meshProxy(SMESH._objref_SMESH_Mesh):
def __init__(self, *args):
SMESH._objref_SMESH_Mesh.__init__(self, *args)
def __deepcopy__(self, memo=None):
new = self.__class__()
new = self.__class__(self)
return new
def CreateDimGroup(self,*args): # 2 args added: nbCommonNodes, underlyingOnly
if len( args ) == 3:
@ -5141,7 +5141,7 @@ class submeshProxy(SMESH._objref_SMESH_subMesh):
SMESH._objref_SMESH_subMesh.__init__(self, *args)
self.mesh = None
def __deepcopy__(self, memo=None):
new = self.__class__()
new = self.__class__(self)
return new
## Compute the sub-mesh and return the status of the computation
@ -5187,7 +5187,7 @@ class meshEditor(SMESH._objref_SMESH_MeshEditor):
print("meshEditor: attribute '%s' NOT FOUND" % name)
return None
def __deepcopy__(self, memo=None):
new = self.__class__()
new = self.__class__(self)
return new
def FindCoincidentNodes(self,*args): # a 2nd arg added (SeparateCornerAndMediumNodes)
if len( args ) == 1: args += False,