run_cmd.bat 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @echo off
  2. chcp 65001
  3. set no_proxy="127.0.0.1, 0.0.0.0, localhost"
  4. setlocal enabledelayedexpansion
  5. cd /D "%~dp0"
  6. set PATH="%PATH%";%SystemRoot%\system32
  7. echo "%CD%"| findstr /R /C:"[!#\$%&()\*+,;<=>?@\[\]\^`{|}~\u4E00-\u9FFF ] " >nul && (
  8. echo.
  9. echo There are special characters in the current path, please make the path of fish-speech free of special characters before running. && (
  10. goto end
  11. )
  12. )
  13. set TMP=%CD%\fishenv
  14. set TEMP=%CD%\fishenv
  15. (call conda deactivate && call conda deactivate && call conda deactivate) 2>nul
  16. set CONDA_ROOT_PREFIX=%cd%\fishenv\conda
  17. set INSTALL_ENV_DIR=%cd%\fishenv\env
  18. set PYTHONNOUSERSITE=1
  19. set PYTHONPATH=%~dp0
  20. set PYTHONHOME=
  21. call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%"
  22. if errorlevel 1 (
  23. echo.
  24. echo Environment activation failed.
  25. goto end
  26. ) else (
  27. echo.
  28. echo Environment activation succeeded.
  29. )
  30. cmd /k "%*"
  31. :end
  32. pause