Skip to content

Commit

Permalink
chore: resource base paths switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Sep 7, 2024
1 parent f541eb0 commit 2b2fe5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/vrm_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ function readDirRecursiveSync(dir) {
return result;
}

const paths = readDirRecursiveSync(process.cwd());
const basePath = process.env.BLENDER_VRM_TEST_RESOURCES_PATH || process.cwd();
if (!fs.existsSync(basePath)) {
console.error(`No base path: "${basePath}"`);
process.exit(1);
}

const paths = readDirRecursiveSync(basePath);
paths.forEach(async (path) => {
if (basename(dirname(path)) == "in") {
return;
Expand Down

0 comments on commit 2b2fe5e

Please sign in to comment.