Skip to content

Commit

Permalink
Tests fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Dec 5, 2023
1 parent 97b840a commit 87be723
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/test/test_export.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const path = require('path');
const OUT_PREFIX = process.env.OUT_PREFIX || '../tests_out';

process.env['BLENDER_USER_SCRIPTS'] = path.join(process.cwd(), '..');
console.log("AAA: " + path.join(process.cwd(), '..'));
console.log("BBB: " + path.join(process.env, '..'));

const blenderVersions = (() => {
if (process.platform == 'darwin') {
Expand Down
4 changes: 2 additions & 2 deletions tests/test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio ${blenderPath} --python export_gltf.py -- ${outDirName} ${options}`;
const cmd = `${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);

Expand All @@ -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 = `BLENDER_USER_SCRIPTS=${path.resolve("../")} ${blenderVersion} -b --factory-startup --addons io_hubs_addon -noaudio --python roundtrip_gltf.py -- ${gltfPath} ${outDirName} ${options}`;
const cmd = `${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);

Expand Down

0 comments on commit 87be723

Please sign in to comment.