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

Py3 port suite

parent e2f674d1
No related branches found
No related tags found
No related merge requests found
......@@ -339,16 +339,17 @@ class LaunchJob(ParametricJob):
# filling command to battery
pin.write('import sys, os, os.path\n')
if self.debug:
pin.write('print ("sys.path = ", sys.path\n)')
pin.write('print ("os.getcwd() = ", os.getcwd()\n)')
pin.write('print ("sys.path = ", sys.path)\n')
pin.write('print ("os.getcwd() = ", os.getcwd())\n')
#pin.write("raw_input()\n")
pin.write('if os.path.isdir(r"%s"):\n'%mtfdir)
pin.write('\tsys.path.append(r"%s")\n'%mtfdir) # mtfdir est dorenavant un abspath
#pin.write('\tsys.path.append(os.path.abspath(r"%s"))\n'%mtfdir)
pin.write('else:\n')
pin.write('\tprint ("metafor dir %s not found!"\n)'%mtfdir)
pin.write('\tprint ("metafor dir %s not found!")\n'%mtfdir)
pin.write('\tsys.exit()\n\n')
pin.write('execfile(r"%s")\n'%os.path.join(mtfdir,'.pythonrc.py'))
pin.write('exec(open(r"%s").read())\n'%os.path.join(mtfdir,'.pythonrc.py'))
#pin.write('execfile(r"%s")\n'%os.path.join(mtfdir,'.pythonrc.py'))
pin.write('import toolbox.battery as b\n')
pin.write('battery = b.Battery() \n')
pin.write('battery.keepFacs = True\n')
......
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