-# Copyright (C) 2014-2016 EDF R&D
+# Copyright (C) 2014-2022 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
-import sys, math, commands
-CWD = commands.getoutput('pwd')
+import sys, math, subprocess
+CWD = subprocess.getoutput('pwd')
sys.path.append(CWD)
from MacObject import *
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]