Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -561,24 +561,22 @@ def _create_batch_scripts_initial(self):
561
561
rem ******************
562
562
rem handle R if included
563
563
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
+
572
570
573
571
rem ******************
574
572
rem handle Julia if included
575
573
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
582
580
583
581
rem ******************
584
582
rem WinPython.ini part (removed from nsis)
You can’t perform that action at this time.
0 commit comments