Salome HOME
Merge Python 3 porting.
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / CentralUnrefine.py
index 5be20c0bd23a43727c6de72991cf3885735266a7..cd4041a183dd428e636f56abc1995660038a59d3 100644 (file)
@@ -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]