From 87da0094a75b8a57fdd1d89b6744a9638ffede6c Mon Sep 17 00:00:00 2001 From: mistangl Date: Fri, 2 Feb 2024 17:00:46 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Vorher=20=C3=BCberpr=C3=BCfen=20ob=20die?= =?UTF-8?q?=20Datei=20lokal=20schon=20existiert.=20Pfad=20war=20falsch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/get_sivas_teilestamm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/get_sivas_teilestamm.py b/lib/get_sivas_teilestamm.py index aca216f..6d259e3 100644 --- a/lib/get_sivas_teilestamm.py +++ b/lib/get_sivas_teilestamm.py @@ -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)):