Made python script to generate list of modules.
This commit is contained in:
parent
3057bb8dfc
commit
86d5eceeaf
13
src/MultiShop/wwwroot/modules/gen_metadata.py
Normal file
13
src/MultiShop/wwwroot/modules/gen_metadata.py
Normal file
@ -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()
|
Loading…
Reference in New Issue
Block a user