activate.bat 976 B

12345678910111213141516171819202122232425262728293031323334
  1. @echo off
  2. rem This file is UTF-8 encoded, so we need to update the current code page while executing it
  3. for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
  4. set _OLD_CODEPAGE=%%a
  5. )
  6. if defined _OLD_CODEPAGE (
  7. "%SystemRoot%\System32\chcp.com" 65001 > nul
  8. )
  9. set VIRTUAL_ENV=C:\Users\User\Desktop\flask_api_demo\venv
  10. if not defined PROMPT set PROMPT=$P$G
  11. if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
  12. if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
  13. set _OLD_VIRTUAL_PROMPT=%PROMPT%
  14. set PROMPT=(venv) %PROMPT%
  15. if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
  16. set PYTHONHOME=
  17. if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
  18. if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%
  19. set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
  20. set VIRTUAL_ENV_PROMPT=(venv)
  21. :END
  22. if defined _OLD_CODEPAGE (
  23. "%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
  24. set _OLD_CODEPAGE=
  25. )