|
|
|
@ -3,7 +3,6 @@ |
|
|
|
for %%d in (%~dp0.) do set Directory=%%~fd |
|
|
|
|
|
|
|
for %%d in (%~dp0..) do set ParentDirectory=%%~fd |
|
|
|
REM goto skipTestq |
|
|
|
|
|
|
|
for /f "usebackq tokens=*" %%a in (`dir /B ^| findstr /r /i winpython.*`) do ( |
|
|
|
set setup=%%a |
|
|
|
@ -11,26 +10,24 @@ for /f "usebackq tokens=*" %%a in (`dir /B ^| findstr /r /i winpython.*`) do ( |
|
|
|
) |
|
|
|
:skipA |
|
|
|
set Directory=%~dp0 |
|
|
|
REM echo %setup% |
|
|
|
"%Directory%\%setup%" |
|
|
|
set winpython=%%a |
|
|
|
:skipTest |
|
|
|
for /f "usebackq tokens=*" %%a in (`dir /A:D /B ^| findstr /r /i w.*py.*`) do ( |
|
|
|
set winpython=%%a |
|
|
|
goto skipB |
|
|
|
) |
|
|
|
:skipB |
|
|
|
:skipBq |
|
|
|
set winpython="%Directory%\%winpython%" |
|
|
|
for /f "usebackq tokens=*" %%a in (`dir /A:D /B %winpython% ^| findstr /r /i python.*`) do ( |
|
|
|
set exe=%%a |
|
|
|
goto skipC |
|
|
|
) |
|
|
|
:skipC |
|
|
|
workers\path_append "%winpython%\%exe%" |
|
|
|
set exe="%winpython%\%exe%\python.exe" |
|
|
|
setx winpython %winpython% |
|
|
|
setx python %exe% |
|
|
|
md "%winpython%\settings\.idlerc" |
|
|
|
copy config-highlight.cfg %winpython%\settings\.idlerc |
|
|
|
md "%appdata%\Notepad++\themes" |
|
|
|
copy themes "%appdata%\Notepad++\themes" |
|
|
|
%exe% install.py from_pack packs.txt |
|
|
|
%exe% workers\install.py from_pack workers\packs.txt |