fix: Vorher überprüfen ob die Datei lokal schon existiert. Pfad war falsch

This commit is contained in:
2024-02-02 17:00:46 +01:00
parent cdff4a8987
commit 87da0094a7
+2 -2
View File
@@ -19,9 +19,9 @@ def get_sivas_teilestamm(sivas_id, out_dir):
print(f"Attempting to generate a json-file of all parts to be migrated in relation with '{sivas_id}'")
source_path = os.path.join(os.path.expandvars("%USERPROFILE%"), "AppData", "Local", "Temp", "from_siv.csv")
to_path = os.path.join(out_dir, sivas_id + ".csv")
if os.path.isfile(os.path.join(source_path)):
if os.path.isfile(os.path.join(to_path)):
print("file already there. done")
exit
exit()
subprocess.run(f"{sivas_teilestamm_exe} userid=sivas password=forte database=sivas program=ExcelUeb LFDNR=500 EINSTIEG=SQL PARAMETER1={sivas_id}")
if os.path.isfile(os.path.join(source_path)):