[change] autoPyLoT output folder automatically set to event folder

This commit is contained in:
Marcel Paffrath 2017-08-07 13:35:05 +02:00
parent 57295c4a17
commit 4f1541ce4e

View File

@ -1877,8 +1877,8 @@ class MainWindow(QMainWindow):
self.tap.fill_tabs(picked=True)
def autoPick(self):
self.autosave = QFileDialog().getExistingDirectory(caption='Select autoPyLoT output')
if not os.path.exists(self.autosave):
autosave = self.get_current_event_path()
if not os.path.exists(autosave):
QMessageBox.warning(self, "PyLoT Warning",
"No autoPyLoT output declared!")
return