From 89e8437381606888044482f8710a583ed9792607 Mon Sep 17 00:00:00 2001 From: MatOgr Date: Tue, 26 Apr 2022 01:50:31 +0200 Subject: [PATCH] 478841 --- run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.py b/run.py index 7ba86f7..72ccfb6 100644 --- a/run.py +++ b/run.py @@ -7,7 +7,6 @@ import lzma def read_file(f_name, f_ext=""): if f_ext == "xz": - # data = [] with lzma.open(f"{f_name}.{f_ext}") as file: return [line.strip().decode("utf-8") for line in file.readlines()] with open(f_name, encoding="utf-8") as file: @@ -15,7 +14,7 @@ def read_file(f_name, f_ext=""): def write_file(dir_name, preds): - with open(f"{dir_name}\out.tsv", "a", encoding="utf-8") as file_out: + with open(f"{dir_name}/out.tsv", "a", encoding="utf-8") as file_out: for val in preds: file_out.writelines(f"{str(val)}")