From fcfa2e9edca7f610eeef030a4c3306c9ac33356e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 27 Mar 2017 10:25:19 +0200 Subject: [PATCH] Cosemtics and first steps to make PyLoT more flexible to different input-file names. --- QtPyLoT.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 11eb8279..06750cc7 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -77,7 +77,11 @@ class MainWindow(QMainWindow): self.createAction = createAction # read settings settings = QSettings() + # check for default pylot.in-file infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in') + if os.path.isfile(infile)== False: + infile = raw_input("Default file not found! Type name including full path ...") + self._inputs = AutoPickParameter(infile) if settings.value("user/FullName", None) is None: fulluser = QInputDialog.getText(self, "Enter Name:", "Full name") @@ -206,7 +210,7 @@ class MainWindow(QMainWindow): QKeySequence.Open, manupicksicon, "Load manual picks for " - "the actual event.") + "the displayed event.") openmanualpicksaction.setData(None) openautopicksaction = self.createAction(self, "Load &automatic picks " "...", @@ -214,14 +218,14 @@ class MainWindow(QMainWindow): "Ctrl+A", autopicksicon, "Load automatic picks " - "for the actual event.") + "for the displayed event.") openautopicksaction.setData(None) loadlocationaction = self.createAction(self, "Load &location ...", self.load_loc, "Ctrl+L", locactionicon, "Load location information on " - "the actual event.") + "the displayed event.") loadpilotevent = self.createAction(self, "Load PILOT &event ...", self.load_pilotevent, "Ctrl+E", loadpiloticon, @@ -1162,7 +1166,7 @@ def main(): pylot_app.processEvents() # set Application Information - pylot_app.setOrganizationName("Ruhr-University Bochum / MAGS2") + pylot_app.setOrganizationName("Ruhr-University Bochum / BESTEC") pylot_app.setOrganizationDomain("rub.de") pylot_app.processEvents() pylot_app.setApplicationName("PyLoT")