From 9fd982b1ef3a964ddc5bd8301de1947ead485aaf Mon Sep 17 00:00:00 2001 From: Thomas Moeller Date: Thu, 28 Mar 2019 14:04:39 +0100 Subject: [PATCH] Modified the Save settings widget for saving the input files such that the file extension .in is always added --- pylot/core/util/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 14213531..e4d76ebc 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -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):