Die Eingabeparameter 'id' in 06_migrationsstatus_treeview und -number beim Aufruf des Sivas2Json-Programms von Hr. Jakob sind nun jeweils in Anführungszeichen, damit auch Teilenummern mit Leerzeichen, wie z.B. 'TOS Auswahl ILS' korrekt verarbeitet werden können. Ansonsten endet das Parameterargument beim Leerzeichen
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@echo off
|
||||
:start
|
||||
set /p "id=Baugruppennummer: "
|
||||
CALL 04_compare_lists.bat --sivasid %id% -t
|
||||
CALL 04_compare_lists.bat --sivasid "%id%" -t
|
||||
goto start
|
||||
|
||||
@@ -71,7 +71,7 @@ def get_sivas_dbase(sivas_id, out_dir):
|
||||
|
||||
if os.path.isdir(out_dir):
|
||||
print(f"Attempting to generate a json-file of all parts to be migrated in relation with '{sivas_id}'")
|
||||
subprocess.run(f"{sivas_exe_path} -o {out_dir} --format json -number {sivas_id}")
|
||||
subprocess.run(f'{sivas_exe_path} -o {out_dir} --format json -number "{sivas_id}"')
|
||||
|
||||
if os.path.isfile(os.path.join(out_dir, sivas_id + ".json")):
|
||||
print("done")
|
||||
|
||||
Reference in New Issue
Block a user