mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 04:17:58 +08:00
fix: HikyuuTdx退出时检测tmp目录并建立
This commit is contained in:
parent
78a6d37437
commit
9dca61c44c
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user