This commit is contained in:
Sit Melai 2021-11-19 07:43:33 +01:00
parent 0149bb8ed0
commit 71f2800c4e

11
main.py
View file

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