From 97b840ac71be70266c527ac795942ad517a4a64c Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Tue, 5 Dec 2023 15:16:07 +0100 Subject: [PATCH] Fix tests --- tests/test/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test/utils.js b/tests/test/utils.js index df4de953..b92e3ffb 100644 --- a/tests/test/utils.js +++ b/tests/test/utils.js @@ -6,7 +6,7 @@ const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12 function blenderFileToGltf(blenderVersion, blenderPath, outDirName, done, options = '') { const { exec } = require('child_process'); - const cmd = `${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`; + const cmd = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`; var prc = exec(cmd, (error, stdout, stderr) => { //if (stderr) process.stderr.write(stderr); @@ -21,7 +21,7 @@ function blenderFileToGltf(blenderVersion, blenderPath, outDirName, done, option function blenderRoundtripGltf(blenderVersion, gltfPath, outDirName, done, options = '') { const { exec } = require('child_process'); - const cmd = `${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`; + const cmd = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`; var prc = exec(cmd, (error, stdout, stderr) => { //if (stderr) process.stderr.write(stderr);