mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Update path
This commit is contained in:
parent
e515f1dee1
commit
0369148a15
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ plugin_category = ["maps", "minigames", "utilities"]
|
|||
plugin_names_by_category = {}
|
||||
|
||||
for category in plugin_category:
|
||||
with open(f"{category}.json", "r+") as file:
|
||||
with open(f"plugins/{category}/{category}.json", "r+") as file:
|
||||
data = json.load(file)
|
||||
plugins = data["plugins"]
|
||||
plugin_names_by_category[category] = list(plugins.keys())
|
||||
|
|
@ -24,3 +24,4 @@ for category in plugin_category:
|
|||
# Ensure old content is removed
|
||||
file.truncate()
|
||||
print(f"All {category} version have been upgraded")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue