Modified the Save settings widget for saving the input files such that the file extension .in is always added

This commit is contained in:
Thomas Möller 2019-03-28 14:04:39 +01:00
parent 81c7ac2f6e
commit 9fd982b1ef

View File

@ -4223,9 +4223,9 @@ class PylotParaBox(QtGui.QWidget):
if fname[0]:
try:
self.params_from_gui()
self.parameter.export2File(fname[0])
self.parameter.export2File(fname[0] + ".in")
except Exception as e:
self._warn('Could not save file {}:\n{}'.format(fname[0], e))
self._warn('Could not save file {}:\n{}'.format(fname[0]+ ".in", e))
return
def restoreDefaults(self):