This commit is contained in:
shenjack-5600u 2024-05-09 21:52:39 +08:00
parent 85a37db3ea
commit b458a16c22
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -43,7 +43,7 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None:
with open(root_path / "md5" / "input.txt", "w") as f: with open(root_path / "md5" / "input.txt", "w") as f:
f.write(names) f.write(names)
# 执行 node md5.js # 执行 node md5.js
runner_path = root_path / "md5" / "runs.ts" runner_path = root_path / "md5" / "runs.mts"
input_path = root_path / "md5" / "input.txt" input_path = root_path / "md5" / "input.txt"
result = subprocess.run( result = subprocess.run(
["npm", "x", "tsx", runner_path.absolute(), input_path.absolute()], ["npm", "x", "tsx", runner_path.absolute(), input_path.absolute()],