Improve DOCX translation handling
This commit is contained in:
4
run.bat
4
run.bat
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user