Compare commits
3 Commits
a1e688636d
...
c11094204a
| Author | SHA1 | Date | |
|---|---|---|---|
| c11094204a | |||
| bff2a9ab62 | |||
| d431ba1b92 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+19
-3
@@ -1,6 +1,7 @@
|
||||
@echo off
|
||||
REM ~dp0 steht für das Verzeichnis, in der diese Datei liegt
|
||||
pushd %~dp0\..
|
||||
|
||||
set CREMIG=%cd%
|
||||
set CREMIG_BIN=%CREMIG%\bin
|
||||
set CREMIG_CFG=%CREMIG%\cfg
|
||||
@@ -13,7 +14,13 @@ if not exist %CREMIG%\work mkdir %CREMIG%\work
|
||||
if not exist %CREMIG%\log mkdir %CREMIG%\log
|
||||
if not exist %CREMIG%\data mkdir %CREMIG%\data
|
||||
|
||||
set PATH=%CREMIG%\bin;%PATH%
|
||||
if not defined RD_DATABASE_SOURCE (
|
||||
rem Vehindert erneutes voranstellen von CREMIG_BIN an Path bei mehrmaligem Aufruf von cremig_setenv.bat (z.B. bei mehrmaliger Ausfuehrung von 06_migrationsstatus_treeview.bat)
|
||||
set return=1
|
||||
goto set_path
|
||||
)
|
||||
|
||||
:r1
|
||||
|
||||
set RD_DATABASE_SOURCE=\\ssg.local\freigaben\SIVAS_CAD_EDM\Migration\07_RD_Teilenummern
|
||||
set RD_DATABASE_NAME=RD_Teilenummern.csv
|
||||
@@ -21,6 +28,15 @@ set BLACKLIST_DATABASE_SOURCE=\\ruledesigner\RDF_Daten\Konfigurator\CustomVaulti
|
||||
set BLACKLIST_DATABASE_NAME=ERP_BOM.ini
|
||||
set VBA_MACRO_NAME=vba_format_excel.xlsm
|
||||
set SIVAS_DATABASE_QUERY=Y:\jit\programme\Sivas2json.exe
|
||||
REM set SIVAS_TEILESTAMM=\\195.243.223.3\sivas\NetEnv\Sivas4.exe
|
||||
set SIVAS_TEILESTAMM=Y:\NetEnv\Sivas4.exe
|
||||
set SIVAS_TEILESTAMM=\\195.243.223.3\sivas\jit\programme\KSbExcelExportSivasTeilestamm.exe
|
||||
set SIVAS_EXCEL_EXPORT_DIR=%CREMIG_WORK%
|
||||
|
||||
rem Um den Python-Interpreter auf U:\ zu nutzen, Kommentar (rem) in nachfolgender Zeile entfernen
|
||||
rem set NETWORK_INTERPRETER_PATH=\\ssg.local\freigaben\Allgemein\Programmierumgebung\Python312
|
||||
|
||||
popd
|
||||
goto :eof
|
||||
|
||||
:set_path
|
||||
set PATH=%CREMIG%\bin;%PATH%
|
||||
goto r%return%
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
CALL cremig_setenv.bat
|
||||
IF DEFINED NETWORK_INTERPRETER_PATH (
|
||||
goto %~1_network
|
||||
|
||||
) ELSE (
|
||||
goto %~1_local
|
||||
)
|
||||
|
||||
:activate_interpreter_local
|
||||
IF NOT EXIST %CREMIG%\.venv CALL %CREMIG_BIN%\install_py.bat
|
||||
CALL %CREMIG%\.venv\Scripts\activate.bat
|
||||
goto :eof
|
||||
|
||||
:deactivate_interpreter_local
|
||||
deactivate
|
||||
goto :eof
|
||||
|
||||
:activate_interpreter_network
|
||||
SET OLD_PATH=%PATH%
|
||||
SET PATH=%NETWORK_INTERPRETER_PATH%;%PATH%
|
||||
goto :eof
|
||||
|
||||
:deactivate_interpreter_network
|
||||
SET PATH=%OLD_PATH%
|
||||
SET OLD_PATH=
|
||||
SET NETWORK_INTERPRETER_PATH=
|
||||
goto :eof
|
||||
@@ -1,5 +1,8 @@
|
||||
import update_database
|
||||
|
||||
import warnings
|
||||
#Wegen Pandas Deprecation eingebaut
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
import argparse
|
||||
import os
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user