Skip to content

Commit b8df04c

Browse files
Remove use of p:, fix install error check
1 parent 89cea5b commit b8df04c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

build/update_genie_python.bat

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
setlocal
1+
setlocal EnableDelayedExpansion
22
@echo off
33
REM It only takes two or three minutes to do a full install, so for simplicity we do that.
44
REM it is installed using xcopy /d, so if it hasn't changed then it doesn't do anything.
55

6-
set PYTHON_KITS_PATH=p:\Kits$\CompGroup\ICP\genie_python_3\
7-
set PYTHON_INSTALL_DIR=C:\Instrument\Apps\Python3
6+
set "PYTHON_KITS_PATH=\\isis.cclrc.ac.uk\inst$\Kits$\CompGroup\ICP\genie_python_3"
7+
set "PYTHON_INSTALL_DIR=C:\Instrument\Apps\Python3"
88

99
@echo Updating genie_python
1010

11-
@echo Deleting P drive
12-
net use p: /d
13-
@echo Mapping P drive
14-
net use p: \\isis\inst$
15-
1611
if exist "%PYTHON_KITS_PATH%\LATEST_BUILD.txt" (
1712
for /f %%i in ( %PYTHON_KITS_PATH%\LATEST_BUILD.txt ) do (
1813
@echo NEW_BUILD: %%i
1914
call %PYTHON_KITS_PATH%\BUILD-%%i\genie_python_install.bat
20-
if %errorlevel% neq 0 goto ERROR
15+
if !errorlevel! neq 0 goto ERROR
2116
)
2217
) else (
2318
@echo Could not access LATEST_BUILD.txt

0 commit comments

Comments
 (0)