Present error message if HTML Export path does not exist

This commit is contained in:
blitzmann
2015-10-04 15:36:56 -04:00
parent 17d353e09b
commit b454ac003b

View File

@@ -653,6 +653,15 @@ class MainFrame(wx.Frame):
max = sFit.countAllFits()
path = settings.getPath()
if not os.path.isdir(os.path.dirname(path)):
dlg = wx.MessageDialog(self,
"Invalid Path\n\nThe following path is invalid or does not exist: \n%s\n\nPlease verify path location pyfa's preferences."%path,
"Error", wx.OK | wx.ICON_ERROR)
if dlg.ShowModal() == wx.ID_OK:
return
self.progressDialog = wx.ProgressDialog("Backup fits",
"Generating HTML file at: %s"%path,
maximum=max, parent=self,