fix bug and refine ,end of 2025

This commit is contained in:
xinzish
2025-12-31 16:11:28 +08:00
parent 38fb35a333
commit 32bbe3ddcd
23 changed files with 3180 additions and 68 deletions

View File

@@ -9,7 +9,7 @@ import subprocess
import logging
from typing import Any
sys.path.append("..")
from api import project
from api import project_backup
from api import inp_out
@@ -243,7 +243,7 @@ def dump_output_binary(path: str) -> str:
#DingZQ, 2025-02-04, 返回dict[str, Any]
def run_project_return_dict(name: str, readable_output: bool = False) -> dict[str, Any]:
if not project.have_project(name):
if not project_backup.have_project(name):
raise Exception(f'Not found project [{name}]')
dir = os.path.abspath(os.getcwd())
@@ -276,7 +276,7 @@ def run_project_return_dict(name: str, readable_output: bool = False) -> dict[st
# original code
def run_project(name: str, readable_output: bool = False) -> str:
if not project.have_project(name):
if not project_backup.have_project(name):
raise Exception(f'Not found project [{name}]')
dir = os.path.abspath(os.getcwd())