Skip to content

Commit

Permalink
Fix: Add support for checking for addons that are extensions only
Browse files Browse the repository at this point in the history
  • Loading branch information
zachEastin committed Jun 6, 2024
1 parent 182f349 commit 709725c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/addon_folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 709725c

Please sign in to comment.