install.bat 858 Bytes
@echo off

call :ResolvePath path_astromecca %cd%
echo Astromecca in the directory %path_astromecca%

rem Search where is Anaconda
set path_anacondas=c:\Users\%USERNAME%\Anaconda3 C:\ProgramData\Anaconda3
for %%p in (%path_anacondas%) do ( 
   echo %%p
	if exist %%p (
		rem file exists
		set path_anaconda=%%p
	)
)
echo Anaconda found in the directory %path_anaconda%

rem pip
set pip=%path_anaconda%\Scripts\pip
echo ===== Pip with %pyreverse%
echo cd %path_astromecca%
cd %path_astromecca%
echo %pip% install -r requirements.txt
%pip% install -r requirements.txt
echo %pip% install -r requirements_win.txt
%pip% install -r requirements_win.txt
	
exit /b
rem === Functions ===

rem Resolve path to absolute.
rem Param 1: Name of output variable.
rem Param 2: Path to resolve.
rem Return: Resolved absolute path.
:ResolvePath
    set %1=%~dpfn2
    exit /b