From 709725c3bac80863e707cf3998cdb31be8f616de Mon Sep 17 00:00:00 2001 From: zachEastin Date: Thu, 6 Jun 2024 17:39:11 -0500 Subject: [PATCH] Fix: Add support for checking for addons that are extensions only --- src/addon_folder.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/addon_folder.ts b/src/addon_folder.ts index cf23dfb..20f1991 100644 --- a/src/addon_folder.ts +++ b/src/addon_folder.ts @@ -130,6 +130,16 @@ async function tryFindActualAddonFolder(root: string) { } async function folderContainsAddonEntry(folderPath: string) { + let tomlPath = path.join(folderPath, "blender_manifest.toml"); + if (await pathExists(tomlPath)) { + try { + readTextFile(tomlPath); + return true; + } catch (_b) { + return false; + } + } + let initPath = path.join(folderPath, '__init__.py'); try { let content = await readTextFile(initPath);