Skip to content

Commit

Permalink
Fixes to install/remove python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbdoughty committed Aug 30, 2024
1 parent d62f96b commit d2da491
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions installation_and_upgrade/define_latest_genie_python.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ set "genie_dir=%KITS_ICP_PATH%\genie_python_3"
if exist "%genie_dir%\LATEST_BUILD.txt" (

for /f %%i in ( %genie_dir%\LATEST_BUILD.txt ) do (

set "LATEST_PYTHON_DIR=%tmp%\Python_Build_%%i"

if "%~1" NEQ "" (
set "LATEST_PYTHON_DIR=%~1\Python_Build_%%i"
) else (
set "LATEST_PYTHON_DIR=%tmp%\Python_Build_%%i"
)

mkdir !LATEST_PYTHON_DIR!

%genie_dir%\BUILD-%%i\genie_python_install.bat !LATEST_PYTHON_DIR!
Expand Down
4 changes: 2 additions & 2 deletions installation_and_upgrade/remove_genie_python.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ set modified_path=%path:%substring%=%

if "%path%" neq "%modified_path%" (

RMDIR /S /Q %path% && @echo Successfully removed %path%.
RMDIR /S /Q %path%

set LATEST_PYTHON_DIR=
set LATEST_PYTHON=
set LATEST_PYTHON3=


) else (
@echo Could not find the specified path: %path%.
goto ERROR
)

@echo Successfully removed %path% and unset genie build variables.
exit /b 0

:ERROR
Expand Down

0 comments on commit d2da491

Please sign in to comment.