diff options
author | Niclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de> | 2023-10-04 12:49:14 +0200 |
---|---|---|
committer | Niclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de> | 2023-10-04 12:49:14 +0200 |
commit | ecddc6332c7c526b5dbf772e53fcacf68dd5b866 (patch) | |
tree | 947fceb6aa5975bac2ba522d21b1799a9f63e98c | |
parent | 482e0742910da7089032f7b3cb85cf6752f4dfa9 (diff) |
csv filewrite to documentation
-rwxr-xr-x | bjoern/videoanalyse/LogParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bjoern/videoanalyse/LogParser.py b/bjoern/videoanalyse/LogParser.py index 0633fd8..b41804d 100755 --- a/bjoern/videoanalyse/LogParser.py +++ b/bjoern/videoanalyse/LogParser.py @@ -117,7 +117,7 @@ def generate_log(activities: dict): def write_logfile(vp_dir, log): path = Path(f"{vp_dir}/logs.csv") - with open(path, "w") as csvfile: + with open(path, "w", newline="") as csvfile: writer = csv.writer( csvfile, delimiter=",", quoting=csv.QUOTE_NONNUMERIC, lineterminator="\n" ) |