From 8993de53b750c85d50bf44b33e537d51eb00265b Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD <90267658+Loup-Garou911XD@users.noreply.github.com> Date: Sat, 26 Jul 2025 12:41:03 +0530 Subject: [PATCH] testing --- plugins/utilities/allow_invisible_models.py | 10 +++++++++- test/auto_apply_plugin_metadata.py | 9 +++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/plugins/utilities/allow_invisible_models.py b/plugins/utilities/allow_invisible_models.py index ec8355f..a27560e 100644 --- a/plugins/utilities/allow_invisible_models.py +++ b/plugins/utilities/allow_invisible_models.py @@ -5,7 +5,15 @@ import bascenev1 as bs original_getmesh = bs.getmesh - +plugman = dict( + plugin_name="allow_invisible_models", + description="Shake as many stiies of you as possible", + external_url= "https://www.youtube.com/watch?v=dQw4w9WgXcQ", + author=["Loup", "brostos"], + discord="mydiscord", + email = "dontclickthelink@pleasedont.com", + version="1.0.0" +) def get_mesh_gracefully(mesh): if mesh is not None: return original_getmesh(mesh) diff --git a/test/auto_apply_plugin_metadata.py b/test/auto_apply_plugin_metadata.py index f5a64d1..95efb91 100644 --- a/test/auto_apply_plugin_metadata.py +++ b/test/auto_apply_plugin_metadata.py @@ -14,6 +14,7 @@ def debug_print(*args, **kwargs): def update_plugin_json(plugin_info, category): name = plugin_info["plugin_name"] import os + print(os.getcwd()) with open(f"plugins/{category}/{category}.json", "r+") as file: @@ -27,9 +28,7 @@ def update_plugin_json(plugin_info, category): if current_version > plugman_version or current_version == plugman_version: plugin["versions"][plugin_info["version"]] = None # Ensure latest version appears first - plugin["versions"] = dict( - sorted(plugin["versions"].items(), reverse=True) - ) + plugin["versions"] = dict(sorted(plugin["versions"].items(), reverse=True)) plugin["description"] = plugin_info["description"] plugin["external_url"] = plugin_info["external_url"] plugin["authors"] = [ @@ -89,9 +88,7 @@ def extract_plugman(plugins): for kw in node.value.keywords: result[kw.arg] = ast.literal_eval(kw.value) update_plugin_json(result, category=category) - raise ValueError( - "Variable plugman not found in the file or has unsupported format." - ) + raise ValueError("Variable plugman not found in the file or has unsupported format.") if __name__ == "__main__":