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.

35 lines
912 B

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