[minor] reformating
This commit is contained in:
parent
207d0b3a6f
commit
ebf6d4806a
8
PyLoT.py
8
PyLoT.py
@ -118,15 +118,13 @@ class MainWindow(QMainWindow):
|
|||||||
infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in')
|
infile = os.path.join(os.path.expanduser('~'), '.pylot', 'pylot.in')
|
||||||
print('Using default input file {}'.format(infile))
|
print('Using default input file {}'.format(infile))
|
||||||
if os.path.isfile(infile) == False:
|
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",
|
QMessageBox.warning(self, "PyLoT Warning",
|
||||||
"No PyLoT-input file declared!")
|
"No PyLoT-input file declared!")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
self.infile = infile[0]
|
self.infile = infile
|
||||||
else:
|
|
||||||
self.infile = infile
|
|
||||||
self._inputs = PylotParameter(infile)
|
self._inputs = PylotParameter(infile)
|
||||||
self._props = None
|
self._props = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user