X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FMacMesh%2FMacMesh%2FCentralUnrefine.py;h=04c78ab4f8d710bb76ea93a98045f485a8e279ac;hb=6d32f944a0a115b6419184c50b57bf7c4eef5786;hp=5be20c0bd23a43727c6de72991cf3885735266a7;hpb=84cf6c491178cc4cea1be9c8b2ba4d13750d02a3;p=modules%2Fsmesh.git diff --git a/src/Tools/MacMesh/MacMesh/CentralUnrefine.py b/src/Tools/MacMesh/MacMesh/CentralUnrefine.py index 5be20c0bd..04c78ab4f 100644 --- a/src/Tools/MacMesh/MacMesh/CentralUnrefine.py +++ b/src/Tools/MacMesh/MacMesh/CentralUnrefine.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2016 EDF R&D +# Copyright (C) 2014-2019 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -24,8 +24,8 @@ -import sys, math, commands -CWD = commands.getoutput('pwd') +import sys, math, subprocess +CWD = subprocess.getoutput('pwd') sys.path.append(CWD) from MacObject import * @@ -178,7 +178,7 @@ def RemoveLastObj() : Config.Connections = Config.Connections[:-1] def GroupArray(indices, GroupNames) : - if type(indices) is int : + if isinstance(indices, int) : indices = [indices] GroupNames = [GroupNames] Output = [None,None,None,None]