From 0dfdafca34473a8d4235bb97ad87d75c3ada35ef Mon Sep 17 00:00:00 2001 From: "s.steuer" Date: Sun, 12 Nov 2023 00:23:39 +0100 Subject: [PATCH] Automatische Installation der Python Virtual Environment, falls diese noch nicht exisitert --- bin/02_get_sivas_dbase.bat | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/02_get_sivas_dbase.bat b/bin/02_get_sivas_dbase.bat index 65dd138..4babafb 100644 --- a/bin/02_get_sivas_dbase.bat +++ b/bin/02_get_sivas_dbase.bat @@ -1,6 +1,7 @@ @echo off -call cremig_setenv.bat -call %CREMIG%\.venv\Scripts\activate.bat -if "%1" == "-s" (set SIVAS_ID=%2) else (set /p SIVAS_ID=Enter Sivas ID:) +CALL cremig_setenv.bat +IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat +CALL %CREMIG%\.venv\Scripts\activate.bat +IF "%1" == "-s" (set SIVAS_ID=%2) else (set /p SIVAS_ID=Enter Sivas ID:) python %CREMIG_LIB%\update_database.py --sivas=%SIVAS_ID% deactivate