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.
22 lines
662 B
22 lines
662 B
@echo off
|
|
|
|
for %%d in (%~dp0..\) do set Directory=%%~fd
|
|
|
|
for %%d in (%~dp0..\..) do set ParentDirectory=%%~fd
|
|
REM echo %Directory%
|
|
REM echo %ParentDirectory%
|
|
REM pause
|
|
for /f "usebackq tokens=*" %%a in (`dir /A:D /B %Directory% ^| 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
|
|
REM set exe="%winpython%\%exe%\python.exe"
|
|
"%winpython%\t\7z.exe" a -t7z "%ParentDirectory%\python.7z" -p123456789 -mhe=on -mx "%Directory%" -xr!%_winpython% -xr!__pycache__
|
|
python upload.py
|