Skip to content

Commit 2023eca

Browse files
fix: tools目录错误
1 parent 9909eb6 commit 2023eca

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

tools/install.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525

2626
def get_dotnet_platform_tag():
27-
"""根据 os 和 arch 返回 dotnet 平台标签"""
2827
if os_name == "win" and arch == "x86_64":
2928
return "win-x64"
3029
elif os_name == "win" and arch == "aarch64":

tools/install_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
from configure import configure_ocr_model
1212

13-
working_dir = Path(__file__).parent.parent.parent
13+
# 修正:指向仓库根目录(即 tools 的父目录)
14+
working_dir = Path(__file__).parent.parent.resolve()
1415
install_path = working_dir / "install-cli"
1516

1617
if len(sys.argv) < 4:

tools/install_mxu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
from configure import configure_ocr_model
1212

13-
working_dir = Path(__file__).parent.parent.parent
13+
# 修正:指向仓库根目录
14+
working_dir = Path(__file__).parent.parent.resolve()
1415
install_path = working_dir / "install-mxu"
1516

1617
if len(sys.argv) < 4:

0 commit comments

Comments
 (0)