Worker: check BLENDER_CMD environment variable (for multi-GPU Eevee rendering) #104193

Open
MKRelax wants to merge 9 commits from MKRelax/flamenco:worker-use-blender-from-env into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit dc1077c4cf - Show all commits

View File

@ -6,6 +6,7 @@ package worker
import (
"context"
"fmt"
"os/exec"
"regexp"
"sync"
@ -88,7 +89,8 @@ func (ce *CommandExecutor) cmdBlenderRenderCommand(
// No directory path given. Check that the executable is set in an
// environment variable or can be found on the path.
if path := find_blender.EnvironmentVariable(); path != "" {
logger.Info().Str("path", path).Msg("found Blender in environment")
msg := fmt.Sprintf("using blender from %s", find_blender.BlenderPathEnvVariable)
logger.Info().Str("path", path).Msg(msg)
parameters.exe = path
} else if _, err := exec.LookPath(parameters.exe); err != nil {
// Attempt a platform-specific way to find which Blender executable to