From 7dbaaa61c0562e08f89bf3369c9e3b931105fb9c Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Mon, 20 Oct 2025 19:06:48 +0200 Subject: [PATCH] added create folder --- files/modify_csv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/modify_csv.py b/files/modify_csv.py index 205da99..fd8dd9b 100755 --- a/files/modify_csv.py +++ b/files/modify_csv.py @@ -20,6 +20,8 @@ default_csv = str("ausgaben_month/" + check_csv_file_create_new()) def create_csv_file(csv_path=default_csv): if not os.path.exists(csv_path): + directory_csv = os.path.dirname(default_csv) + os.makedirs(directory_csv, exist_ok=True) print(csv_path, "wird angelegt !!") to_write_header = ["datum", "ausgaben", "beschreibung"] with open(csv_path, "w") as wfile: