Skip to content

Commit c2e22f4

Browse files
Initial Upload
1 parent cf8af97 commit c2e22f4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

KovaaK CSV Converter.exe

8.27 MB
Binary file not shown.

KovaaK CSV Converter.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import re
2+
import fnmatch
3+
import os
4+
import ctypes
5+
result = ctypes.windll.user32.MessageBoxW(0, "Run? All CSV files in this folder will be edited!", "KovaaK CSV Converter", 32 | 4)
6+
if result == 6:
7+
cwd = os.getcwd()
8+
for filename in os.listdir("."):
9+
if fnmatch.fnmatch(filename, '*.csv'):
10+
print(filename)
11+
file = os.path.join(cwd, filename)
12+
with open(file, 'r+') as csv:
13+
content = csv.read()
14+
content_new = re.sub('(..:..:..)(.)(..)', r'\1:\3', content, flags=re.M)
15+
csv.write(content_new)
16+
ctypes.windll.user32.MessageBoxW(0, "Converted all CSVs to the new Format", "KovaaK CSV Converter", 64)
17+
else:
18+
exit(0)

0 commit comments

Comments
 (0)