diff --git a/resources/startingFiles.json b/resources/startingFiles.json index 8ebaa57..b657456 100644 --- a/resources/startingFiles.json +++ b/resources/startingFiles.json @@ -63,6 +63,7 @@ "options.txt" : "Testing: True\nTesting guild ids:\nAdmins:" }, "folder" : [ + "resources/lookup", "resources/games/blackjackTables", "resources/games/connect4Boards", "resources/games/hexBoards", diff --git a/utils/utilFunctions.py b/utils/utilFunctions.py index 92c655a..1d0600b 100644 --- a/utils/utilFunctions.py +++ b/utils/utilFunctions.py @@ -90,15 +90,15 @@ def makeFiles(): with open("resources/startingFiles.json") as f: data = json.load(f) + for path in data["folder"]: + directory(path) + for path, content in data["json"].items(): makeJsonFile(path,content) for path, content in data["txt"].items(): makeTxtFile(path,content) - for path in data["folder"]: - directory(path) - # Replaces multiple things with the same thing def replaceMultiple(mainString, toBeReplaces, newString): # Iterate over the strings to be replaced