You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
924 B

  1. @echo off
  2. for %%d in (%~dp0.) do set Directory=%%~fd
  3. for %%d in (%~dp0..) do set ParentDirectory=%%~fd
  4. for /f "usebackq tokens=*" %%a in (`dir /B installer`) do (
  5. set setup=installer\%%a
  6. goto skipA
  7. )
  8. :skipA
  9. REM set Directory=%~dp0
  10. "%Directory%\%setup%"
  11. REM set winpython=%%a
  12. for /f "usebackq tokens=*" %%a in (`dir /A:D /B ^| findstr /r /i w.*py.*`) do (
  13. set winpython=%%a
  14. goto skipB
  15. )
  16. :skipB
  17. set winpython="%Directory%\%winpython%"
  18. for /f "usebackq tokens=*" %%a in (`dir /A:D /B %winpython% ^| findstr /r /i python.*`) do (
  19. set exe=%%a
  20. goto skipC
  21. )
  22. :skipC
  23. workers\path_append "%winpython%\%exe%"
  24. set exe="%winpython%\%exe%\python.exe"
  25. setx winpython %winpython%
  26. md "%winpython%\settings\.idlerc"
  27. copy config-highlight.cfg %winpython%\settings\.idlerc
  28. md "%appdata%\Notepad++\themes"
  29. copy themes "%appdata%\Notepad++\themes"
  30. "%exe%" -m pip install -r %Directory%\google_api_wrapper\requirements.txt