1 class ScriptLocalParameters:
2 def __init__(self, args):
4 self.debug = KernelBasis.VerbosityActivated()
5 self.nb_proc = self._read_arg(args[0], "NULL")
6 self.workdir = self._read_arg(args[1], "NULL")
7 self.isTmpDir = True if args[2] == "1" else False
8 self.name_server = args[3]
9 self.container = args[4]
10 self.container_name = args[5]
11 self.libbatch_nodefile = self._read_arg(args[6], "NULL")
12 self.machine_file = self._read_arg(args[7], "NULL")
13 self.ompi_uri_file = self._read_arg(args[8], "NULL")
16 self.Windows = platform.system() == "Windows"
18 def _read_arg(self, value, null_value):
19 if value == null_value:
25 str.append("nb_proc: %s" % self.nb_proc)
26 str.append("workdir: %s" % self.workdir)
27 str.append("isTmpDir: %s" % self.isTmpDir)
28 str.append("name_server: %s" % self.name_server)
29 str.append("container: %s" % self.container)
30 str.append("container_name: %s" % self.container_name)
31 str.append("libbatch_nodefile: %s" % self.libbatch_nodefile)
32 str.append("machine_file: %s" % self.machine_file)
33 str.append("ompi_uri_file: %s" % self.ompi_uri_file)