Merge pull request #574 from uMetalooper/main

Minor update on Python utility on Windows
This commit is contained in:
Jeff Atwood
2022-02-20 13:19:07 -06:00
committed by GitHub

View File

@@ -18,7 +18,7 @@ checklist = ["game", "csharp", "java", "javascript",
prev_game = "" prev_game = ""
for dirName, subdirList, fileList in os.walk(rootDir): 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 len(split_dir) == 2 and not split_dir[1] in ['.git', '00_Utilities']:
if prev_game == "": if prev_game == "":
@@ -46,5 +46,5 @@ sorted_strings = list(map(lambda l: " | ".join(l) + "\n",
write_string += ''.join(sorted_strings) 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) f.write(write_string)