Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyrights
[modules/smesh.git]
/
src
/
Tools
/
MacMesh
/
MacMesh
/
CentralUnrefine.py
diff --git
a/src/Tools/MacMesh/MacMesh/CentralUnrefine.py
b/src/Tools/MacMesh/MacMesh/CentralUnrefine.py
index 5be20c0bd23a43727c6de72991cf3885735266a7..04c78ab4f8d710bb76ea93a98045f485a8e279ac 100644
(file)
--- a/
src/Tools/MacMesh/MacMesh/CentralUnrefine.py
+++ b/
src/Tools/MacMesh/MacMesh/CentralUnrefine.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2014-201
6
EDF R&D
+# Copyright (C) 2014-201
9
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
#
# 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,
command
s
-CWD =
command
s.getoutput('pwd')
+import sys, math,
subproces
s
+CWD =
subproces
s.getoutput('pwd')
sys.path.append(CWD)
from MacObject import *
sys.path.append(CWD)
from MacObject import *
@@
-178,7
+178,7
@@
def RemoveLastObj() :
Config.Connections = Config.Connections[:-1]
def GroupArray(indices, GroupNames) :
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]
indices = [indices]
GroupNames = [GroupNames]
Output = [None,None,None,None]