Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cd55f3

Browse files
author
stonebig
committed
fix for issue 375
1 parent 4ff7948 commit 2cd55f3

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

make.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -561,24 +561,22 @@ def _create_batch_scripts_initial(self):
561561
rem ******************
562562
rem handle R if included
563563
rem ******************
564-
if exist "%WINPYDIR%\..\tools\R\bin" (
565-
set R_HOME=%WINPYDIR%\..\tools\R
566-
if "%WINPYARCH%"=="WIN32" (
567-
set R_HOMEbin=%R_HOME%\bin\i386
568-
) else (
569-
set R_HOMEbin=%R_HOME%\bin\x64
570-
)
571-
)
564+
if not exist "%WINPYDIR%\..\tools\R\bin" goto r_bad
565+
set R_HOME=%WINPYDIR%\..\tools\R
566+
if "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\i386
567+
if not "%WINPYARCH%"=="WIN32" set R_HOMEbin=%R_HOME%\bin\x64
568+
:r_bad
569+
572570
573571
rem ******************
574572
rem handle Julia if included
575573
rem ******************
576-
if exist "%WINPYDIR%\..\tools\Julia\bin" (
577-
set JULIA_HOME=%WINPYDIR%\..\tools\Julia\bin\
578-
set JULIA_EXE=julia.exe
579-
set JULIA=%JULIA_HOME%%JULIA_EXE%
580-
set JULIA_PKGDIR=%WINPYDIR%\..\settings\.julia
581-
)
574+
if not exist "%WINPYDIR%\..\tools\Julia\bin" goto julia_bad
575+
set JULIA_HOME=%WINPYDIR%\..\tools\Julia\bin\
576+
set JULIA_EXE=julia.exe
577+
set JULIA=%JULIA_HOME%%JULIA_EXE%
578+
set JULIA_PKGDIR=%WINPYDIR%\..\settings\.julia
579+
:julia_bad
582580
583581
rem ******************
584582
rem WinPython.ini part (removed from nsis)

0 commit comments

Comments
 (0)