fix(scripts): resolve plugin scan NameError
Define metadata per file before use
This commit is contained in:
@@ -110,6 +110,7 @@ def scan_plugins_directory(plugins_dir: str) -> list[dict[str, Any]]:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
file_path = os.path.join(root, file)
|
file_path = os.path.join(root, file)
|
||||||
|
metadata = extract_plugin_metadata(file_path)
|
||||||
if metadata:
|
if metadata:
|
||||||
# Determine plugin type from directory structure
|
# Determine plugin type from directory structure
|
||||||
rel_path = os.path.relpath(file_path, plugins_dir)
|
rel_path = os.path.relpath(file_path, plugins_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user