From 71f2800c4e31584569c21bd165469e458afac152 Mon Sep 17 00:00:00 2001 From: Sit Melai Date: Fri, 19 Nov 2021 07:43:33 +0100 Subject: [PATCH] WIP --- main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main.py b/main.py index a0a240e..313cadc 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,7 @@ import tkinter.ttk as ttk from tkinter import filedialog from tk_tooltip import CreateToolTip import re +import os channel_names = [ "SAY", # 0 @@ -248,6 +249,16 @@ def process_file(): filtered_lines += 1 btn_process["text"]="Processing done! (" + str(filtered_lines) + " lines kept out of " + str(orig_lines) + " original lines)" +originalfolderlog = "./logsource" +finalfolder = "./final_logs" +charname = "test" +tmpfolder = "./tmpfolder" + +def order_logs(): + (dirpath, _, filenames) = os.walk(originalfolderlog).next() + for f in filenames: + with open(os.path.join(dirpath, f), 'r') as in_f: + if __name__ == '__main__': window = create_ui()