修正工具面板中的一个错误(会影响metadata修改, 原为先执行后打开metadata.txt文件)

This commit is contained in:
wangweiye7840 2024-03-12 18:36:55 +08:00
parent 3083d5435f
commit 34ee3a11c1
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def run_command(name,openfilelist):
configjson = load_dict("文本文件/config.json") configjson = load_dict("文本文件/config.json")
for f in openfilelist: for f in openfilelist:
if not f in configjson: if not f in configjson:
os.system("code "+f) os.system("code -w "+f)
else: else:
lineindex = getlineindex(f'"{f}"',"文本文件/config.json") lineindex = getlineindex(f'"{f}"',"文本文件/config.json")
os.system(f"code -w -g 文本文件/config.json:{lineindex}") os.system(f"code -w -g 文本文件/config.json:{lineindex}")