- nomFichier=tempfile.mktemp(suffix=ext,prefix='Yams_')
- f=open(nomFichier,'w')
- f.write(cmds)
- f.close()
-
- maBidouille=nomFichier
- self.monExe.start(maBidouille)
+ cmds += 'echo %s\n' % txt #to see what is compute command
+ cmds += txt+'\n'
+ cmds += 'echo "END_OF_MGSurfOpt"\n'
+
+ nomFichier = os.path.splitext(self.parent().fichierOut)[0] + ext
+ with open(nomFichier, 'w') as f:
+ f.write(cmds)
+ self.make_executable(nomFichier)
+
+ if verbose: print("INFO: MGSurfOpt launch script file: %s" % nomFichier)
+
+ self.monExe.start(nomFichier)