From ebf6d4806a4d583cb04bb5510d62f4c71c4b27af Mon Sep 17 00:00:00 2001 From: ann-christin Date: Mon, 14 Nov 2022 11:52:25 +0100 Subject: [PATCH] [minor] reformating --- PyLoT.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index 06e8974c..610a8f3c 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -118,15 +118,13 @@ class MainWindow(QMainWindow): infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in') print('Using default input file {}'.format(infile)) if os.path.isfile(infile) == False: - infile = QFileDialog().getOpenFileName(caption='Choose PyLoT-input file') + infile = QFileDialog().getOpenFileName(caption='Choose PyLoT-input file')[0] - if not os.path.exists(infile[0]): + if not os.path.exists(infile): QMessageBox.warning(self, "PyLoT Warning", "No PyLoT-input file declared!") sys.exit(0) - self.infile = infile[0] - else: - self.infile = infile + self.infile = infile self._inputs = PylotParameter(infile) self._props = None