Windows路径修复
This commit is contained in:
parent
c374f288b0
commit
d9f1aae27c
4 changed files with 15 additions and 16 deletions
4
main.py
4
main.py
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue