fix: HikyuuTdx退出时检测tmp目录并建立

This commit is contained in:
fasiondog 2019-03-11 19:53:06 +08:00
parent 78a6d37437
commit 9dca61c44c

View File

@ -63,6 +63,9 @@ class MyMainWindow(QMainWindow, Ui_MainWindow):
if not os.path.lexists(data_dir + '/block'):
shutil.copytree('../../config/block', data_dir + '/block')
os.remove(data_dir + '/block/__init__.py')
if not os.path.lexists(data_dir + '/tmp'):
os.mkdir(data_dir + '/tmp')
def initUI(self):
current_dir = os.path.dirname(__file__)