config加载,视频gpu参数兼容

This commit is contained in:
2022-04-15 17:30:00 +08:00
parent f017210a71
commit c1945779a8
3 changed files with 6 additions and 2 deletions

View File

@ -31,6 +31,7 @@ BILILIVE_RECORDER_DIRECTORY = "./"
# xigua_dir
XIGUALIVE_RECORDER_DIRECTORY = "./"
def load_config():
if not os.path.exists("config.ini"):
write_config()
@ -103,3 +104,6 @@ def write_config():
with open("config.ini", "w", encoding="utf-8") as f:
config.write(f)
return True
load_config()