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.
33 lines
924 B
33 lines
924 B
@echo off
|
|
|
|
for %%d in (%~dp0.) do set Directory=%%~fd
|
|
|
|
for %%d in (%~dp0..) do set ParentDirectory=%%~fd
|
|
|
|
for /f "usebackq tokens=*" %%a in (`dir /B installer`) do (
|
|
set setup=installer\%%a
|
|
goto skipA
|
|
)
|
|
:skipA
|
|
REM set Directory=%~dp0
|
|
"%Directory%\%setup%"
|
|
REM set winpython=%%a
|
|
for /f "usebackq tokens=*" %%a in (`dir /A:D /B ^| findstr /r /i w.*py.*`) do (
|
|
set winpython=%%a
|
|
goto skipB
|
|
)
|
|
:skipB
|
|
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%
|
|
md "%winpython%\settings\.idlerc"
|
|
copy config-highlight.cfg %winpython%\settings\.idlerc
|
|
md "%appdata%\Notepad++\themes"
|
|
copy themes "%appdata%\Notepad++\themes"
|
|
"%exe%" -m pip install -r %Directory%\google_api_wrapper\requirements.txt
|