mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
Python3 porting: python3 instead python and deepcopy.
This commit is contained in:
parent
21c9336a4d
commit
bf9ebfec9f
@ -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 + "')";
|
||||
|
@ -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 + "')";
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user