diff --git a/src/MultiShop/wwwroot/modules/gen_metadata.py b/src/MultiShop/wwwroot/modules/gen_metadata.py new file mode 100644 index 0000000..8d84f14 --- /dev/null +++ b/src/MultiShop/wwwroot/modules/gen_metadata.py @@ -0,0 +1,13 @@ +import os +import json + +modulepaths = [] + +for content in os.listdir(os.getcwd()): + if (os.path.isfile(content) and os.path.splitext(content)[1] == ".dll"): + print("Adding \"{0}\" to list of modules.".format(content)) + modulepaths.append(content) + +file = open("modules_content.json", "w") +json.dump(modulepaths, file, sort_keys=True, indent=4) +file.close() \ No newline at end of file