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()