]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
'sat jobs': fix bug when --publish is without --input_file
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 21 Sep 2016 11:53:49 +0000 (13:53 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 21 Sep 2016 11:53:49 +0000 (13:53 +0200)
commands/jobs.py

index 81a08db1248d5a5484a32a3d1602113d757918bb..6fd6cedbb60985f9a0389639256f879b816cb689 100644 (file)
@@ -1037,8 +1037,11 @@ class Gui(object):
         # The path of the csv files to read to fill the expected boards
         self.file_boards = file_boards
         
-        today = datetime.date.weekday(datetime.date.today())
-        self.parse_csv_boards(today)
+        if file_boards != "":
+            today = datetime.date.weekday(datetime.date.today())
+            self.parse_csv_boards(today)
+        else:
+            self.d_input_boards = {}
         
         # The path of the global xml file
         self.xml_dir_path = xml_dir_path