Minor update on Python utility on Windows

This commit is contained in:
uMetalooper
2022-02-20 12:39:03 +00:00
parent e10fd59c57
commit f305b8cb30

View File

@@ -18,7 +18,7 @@ checklist = ["game", "csharp", "java", "javascript",
prev_game = ""
for dirName, subdirList, fileList in os.walk(rootDir):
split_dir = dirName.split("/")
split_dir = dirName.split(os.path.sep)
if len(split_dir) == 2 and not split_dir[1] in ['.git', '00_Utilities']:
if prev_game == "":
@@ -46,5 +46,5 @@ sorted_strings = list(map(lambda l: " | ".join(l) + "\n",
write_string += ''.join(sorted_strings)
with open("README.md", "w") as f:
with open("README.md", "w", encoding='utf-8') as f:
f.write(write_string)