We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4aa5b5 commit 4880722Copy full SHA for 4880722
1 file changed
TimeLogger.py
@@ -5,6 +5,7 @@
5
import sys
6
import sqlite3
7
import pandas as pd
8
+import os
9
10
11
class Ui_MainWindow(object):
@@ -28,6 +29,8 @@ def setupUi(self, MainWindow):
28
29
self.date = '%s-%s-%s' % (localtime.tm_year,
30
localtime.tm_mon, localtime.tm_mday) # 转换成日期
31
32
+ if not os.path.exists('data'):
33
+ os.mkdir('data')
34
self.initTodayLogging("data/time_logging.sqlite")
35
self.centralwidget = QtWidgets.QWidget(MainWindow)
36
self.centralwidget.setObjectName("centralwidget")
0 commit comments