-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fd170c
commit d62f96b
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
@echo off | ||
|
||
if "%~1"=="" ( | ||
echo No path provided as the first parameter. | ||
exit /b 1 | ||
@echo No path provided as the first parameter. | ||
goto ERROR | ||
) | ||
|
||
set substring=Python_Build_ | ||
set path=%~1 | ||
set modified_path=%path:%substring%=% | ||
|
||
if "%path%" neq "%modified_path%" ( | ||
|
||
|
||
RMDIR /S /Q %path% && @echo Successfully removed %path%. | ||
|
||
set LATEST_PYTHON_DIR= | ||
set LATEST_PYTHON= | ||
set LATEST_PYTHON3= | ||
|
||
RMDIR /S /Q %path% | ||
|
||
) else ( | ||
echo Could not find the specified path: %path%. | ||
) | ||
@echo Could not find the specified path: %path%. | ||
goto ERROR | ||
) | ||
|
||
exit /b 0 | ||
|
||
:ERROR | ||
@echo remove_genie_python failed | ||
exit /b 1 |