]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat jobs: remove remote sat before copy it
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 16 Nov 2016 08:22:05 +0000 (09:22 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 16 Nov 2016 08:22:05 +0000 (09:22 +0100)
commands/jobs.py

index 258f530d9397215282f5976436f0db67502f9f59..d3bb719f9b6ae3c49c9cfa9796c24cf0540ecb84 100644 (file)
@@ -780,6 +780,15 @@ class Jobs(object):
             
             # Copy salomeTools to the remote machine
             if machine.successfully_connected(self.logger):
+                step = _("Remove SAT")
+                self.logger.write('\r%s%s%s' % (begin_line, endline, 20 * " "),3)
+                self.logger.write('\r%s%s%s' % (begin_line, endline, step), 3)
+                (__, out_dist, __) = machine.exec_command(
+                                                "rm -rf %s" % machine.sat_path,
+                                                self.logger)
+                out_dist.read()
+                
+                self.logger.flush()
                 step = _("Copy SAT")
                 self.logger.write('\r%s%s%s' % (begin_line, endline, 20 * " "),3)
                 self.logger.write('\r%s%s%s' % (begin_line, endline, step), 3)