diff --git a/bin/01_get_rd_dbase.bat b/bin/01_get_rd_dbase.bat index 09e3489..7523bad 100644 --- a/bin/01_get_rd_dbase.bat +++ b/bin/01_get_rd_dbase.bat @@ -1,6 +1,4 @@ @echo off -CALL cremig_setenv.bat -IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat -CALL %CREMIG%\.venv\Scripts\activate.bat +CALL manage_interpreter.bat activate_interpreter python %CREMIG_LIB%\update_database.py -r -deactivate +CALL manage_interpreter.bat deactivate_interpreter diff --git a/bin/02_get_sivas_dbase.bat b/bin/02_get_sivas_dbase.bat index 4babafb..33fdcd2 100644 --- a/bin/02_get_sivas_dbase.bat +++ b/bin/02_get_sivas_dbase.bat @@ -1,7 +1,5 @@ @echo off -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:) +CALL manage_interpreter.bat activate_interpreter python %CREMIG_LIB%\update_database.py --sivas=%SIVAS_ID% -deactivate +CALL manage_interpreter.bat deactivate_interpreter diff --git a/bin/03_get_blacklist_dbase.bat b/bin/03_get_blacklist_dbase.bat index 863fa3d..4c7e36b 100644 --- a/bin/03_get_blacklist_dbase.bat +++ b/bin/03_get_blacklist_dbase.bat @@ -1,6 +1,4 @@ @echo off -CALL cremig_setenv.bat -IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat -CALL %CREMIG%\.venv\Scripts\activate.bat +CALL manage_interpreter.bat activate_interpreter python %CREMIG_LIB%\update_database.py --blacklist -deactivate +CALL manage_interpreter.bat deactivate_interpreter diff --git a/bin/04_compare_lists.bat b/bin/04_compare_lists.bat index 791f216..22f554e 100644 --- a/bin/04_compare_lists.bat +++ b/bin/04_compare_lists.bat @@ -1,7 +1,5 @@ @echo off -CALL cremig_setenv.bat -IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat -IF NOT EXIST %CREMIG_DATA%\%RD_DATABASE_NAME% CALL %CREMIG_BIN%\01_get_rd_dbase.bat -CALL %CREMIG%\.venv\Scripts\activate.bat +CALL 01_get_rd_dbase.bat +CALL manage_interpreter.bat activate_interpreter python %CREMIG_LIB%\compare_lists.py %* -deactivate +CALL manage_interpreter.bat deactivate_interpreter diff --git a/bin/05_get_sivas_teilestamm.bat b/bin/05_get_sivas_teilestamm.bat index b8e895d..9436da0 100644 --- a/bin/05_get_sivas_teilestamm.bat +++ b/bin/05_get_sivas_teilestamm.bat @@ -1,6 +1,4 @@ @echo off -CALL cremig_setenv.bat -IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat -CALL %CREMIG%\.venv\Scripts\activate.bat +CALL manage_interpreter.bat activate_interpreter python %CREMIG_LIB%\get_sivas_teilestamm.py %* -deactivate +CALL manage_interpreter.bat deactivate_interpreter diff --git a/bin/06_migrationsstatus_treeview.bat b/bin/06_migrationsstatus_treeview.bat index 9604a44..6b58f19 100644 --- a/bin/06_migrationsstatus_treeview.bat +++ b/bin/06_migrationsstatus_treeview.bat @@ -1,9 +1,5 @@ @echo off :start -call cremig_setenv.bat set /p "id=Baugruppennummer: " -IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat -CALL %CREMIG_BIN%\01_get_rd_dbase.bat -CALL %CREMIG%\.venv\Scripts\activate.bat -python %CREMIG_LIB%\compare_lists.py -n %id% -t +CALL 04_compare_lists.bat -n %id% -t goto start diff --git a/bin/create_tos_string.bat b/bin/create_tos_string.bat index 7579053..22bfb30 100644 --- a/bin/create_tos_string.bat +++ b/bin/create_tos_string.bat @@ -1,6 +1,4 @@ @echo off -CALL cremig_setenv.bat -IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat -CALL %CREMIG%\.venv\Scripts\activate.bat +CALL manage_interpreter.bat activate_interpreter python %CREMIG_LIB%\create_tos.py %* -deactivate +CALL manage_interpreter.bat deactivate_interpreter