diff --git a/aqt/stats.py b/aqt/stats.py index f10d70d5a..b306a2d48 100644 --- a/aqt/stats.py +++ b/aqt/stats.py @@ -53,6 +53,8 @@ class DeckStats(QDialog): path = os.path.join( QDesktopServices.storageLocation(QDesktopServices.DesktopLocation), name) + if not os.path.exists(path): + os.mkdir(path) p = self.form.web.page() oldsize = p.viewportSize() p.setViewportSize(p.mainFrame().contentsSize())