Skip to content
Snippets Groups Projects
Commit 71f62676 authored by Papeleux Luc's avatar Papeleux Luc
Browse files

bug fix MultiPRM

parent 2dcbce80
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,11 @@ class CompJob(ParametricJob): ...@@ -52,7 +52,11 @@ class CompJob(ParametricJob):
TextPRM(self.pars, 'MAIL_ADDR', 'e-mail address (reports)', os.getenv('USER')) TextPRM(self.pars, 'MAIL_ADDR', 'e-mail address (reports)', os.getenv('USER'))
TextPRM(self.pars, 'SMTP_SERV', 'SMTP email server', 'smtp.ulg.ac.be') TextPRM(self.pars, 'SMTP_SERV', 'SMTP email server', 'smtp.ulg.ac.be')
TextPRM(self.pars, 'ARC_NAME', 'archive name', '~/dev.zip') TextPRM(self.pars, 'ARC_NAME', 'archive name', '~/dev.zip')
TextPRM(self.pars, 'CMAKELIST', 'build options', "%s.cmake" % socket.gethostbyaddr(socket.gethostname())[0].split('.')[0]) try:
machineName = socket.gethostbyaddr(socket.gethostname())[0].split('.')[0] # lpx : marche pas dans des vbox
except:
machineName = socket.gethostname().split('.')[0] # marche dans ma vbox
TextPRM(self.pars, 'CMAKELIST', 'build options', "%s.cmake" %machineName)
YesNoPRM(self.pars, 'DEBUG_MODE', 'debug mode', False) YesNoPRM(self.pars, 'DEBUG_MODE', 'debug mode', False)
TextPRM(self.pars, 'NICE_VALUE', 'nice value', "0") TextPRM(self.pars, 'NICE_VALUE', 'nice value', "0")
......
...@@ -159,7 +159,7 @@ class MultiPRM(PRM): ...@@ -159,7 +159,7 @@ class MultiPRM(PRM):
def writePRM(self, file): def writePRM(self, file):
file.write("self.pars['%s'].vals=["%(self.key)) file.write("self.pars['%s'].vals=["%(self.key))
for v in self.vals: for v in self.vals:
file.write("'%s'," % (v)) file.write("'%s'," % (repr(v)))
file.write("]\n") file.write("]\n")
PRM.writePRM(self,file) PRM.writePRM(self,file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment