# Save Salome study
ed = getStudyEditor()
name_wo_space = param_study.name.replace(" ", "_")
- (fd, input_study) = tempfile.mkstemp(prefix = name_wo_space + "_Input_", suffix = ".hdf")
- os.close(fd)
- salome.myStudyManager.SaveAs(input_study, ed.study, False)
+ if ed.study._get_IsSaved():
+ input_study = ed.study._get_Name()
+ salome.myStudyManager.Save(ed.study, False)
+ else:
+ (fd, input_study) = tempfile.mkstemp(prefix = name_wo_space + "_", suffix = ".hdf")
+ os.close(fd)
+ salome.myStudyManager.SaveAs(input_study, ed.study, False)
# Generate job script
job_script = job_script_template % {"input_study": os.path.basename(input_study),
</item>
</layout>
</item>
+ <item>
+ <widget class="QLabel" name="label_4">
+ <property name="text">
+ <string>Please note that your Salome study will automatically be saved when the job is generated.
+Remember to make a copy before if you don't want to overwrite your study.</string>
+ </property>
+ </widget>
+ </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">