WIP
This commit is contained in:
parent
0149bb8ed0
commit
71f2800c4e
1 changed files with 11 additions and 0 deletions
11
main.py
11
main.py
|
@ -3,6 +3,7 @@ import tkinter.ttk as ttk
|
||||||
from tkinter import filedialog
|
from tkinter import filedialog
|
||||||
from tk_tooltip import CreateToolTip
|
from tk_tooltip import CreateToolTip
|
||||||
import re
|
import re
|
||||||
|
import os
|
||||||
|
|
||||||
channel_names = [
|
channel_names = [
|
||||||
"SAY", # 0
|
"SAY", # 0
|
||||||
|
@ -248,6 +249,16 @@ def process_file():
|
||||||
filtered_lines += 1
|
filtered_lines += 1
|
||||||
btn_process["text"]="Processing done! (" + str(filtered_lines) + " lines kept out of " + str(orig_lines) + " original lines)"
|
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__':
|
if __name__ == '__main__':
|
||||||
window = create_ui()
|
window = create_ui()
|
||||||
|
|
Loading…
Reference in a new issue