Improve DOCX translation handling

This commit is contained in:
2026-07-30 16:32:13 +08:00
parent 20cf8f8188
commit 64c292db82
4 changed files with 708 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ REM 如果传了参数,就用参数;否则默认用当前目录
if "%~1"=="" (
python docutranslate/cli.py -i --host 0.0.0.0
) else (
python docutranslate/cli.py -i "%~1"
python docutranslate/cli.py -i --host 0.0.0.0 %*
)
set EXIT_CODE=%ERRORLEVEL%
@@ -32,4 +32,4 @@ if not "%EXIT_CODE%"=="0" (
pause
)
exit /b %EXIT_CODE%
exit /b %EXIT_CODE%