Windows路径修复

This commit is contained in:
zhbaor 2024-09-23 18:08:21 +08:00
parent c374f288b0
commit d9f1aae27c
4 changed files with 15 additions and 16 deletions

View file

@ -1,6 +1,4 @@
import json
import os
import shlex
from pathlib import Path
from subprocess import PIPE, STDOUT, Popen
@ -38,8 +36,6 @@ class Api:
config["page"] = page
def run(self, command, cwd=None):
command = shlex.split(command)
command[0] = os.path.normpath(command[0])
with Popen(
command,
stdout=PIPE,