Skip to content

Commit 3a0743e

Browse files
committed
Update superGUI.py
1 parent 7dd44ee commit 3a0743e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/superGUI.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ def __init__(self, MainWindow, args):
178178
self.r_path = r_path
179179

180180
# 录像保存位置
181-
self.replay_path = str(self.setting_path / 'replay')
181+
replay_path_dir = self.setting_path / 'replay'
182+
self.replay_path = str(replay_path_dir)
183+
replay_path_dir.mkdir(parents=True, exist_ok=True)
182184
# 记录了全局游戏设置
183185
game_setting_path = str(self.setting_path / 'gameSetting.ini')
184186
self.game_setting = IniConfig(game_setting_path)

0 commit comments

Comments
 (0)