From 1f2c23bee4844d3fc38b4efa2c82fe751852782c Mon Sep 17 00:00:00 2001 From: Murray Stevenson <50844517+murraystevenson@users.noreply.github.com> Date: Thu, 27 Feb 2025 17:45:06 -0800 Subject: [PATCH] SConstruct : Sanitise commandEnv environment variables Otherwise the `RENDERMAN_ROOT` "" default turns into `RMANTREE = ""`, which leads to errors in the documentation build as we try to import GafferRenderMan. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 44765627a9..f7505e3276 100644 --- a/SConstruct +++ b/SConstruct @@ -788,7 +788,8 @@ for option, envVar in { "ONNX_ROOT" : "ONNX_ROOT", "RENDERMAN_ROOT" : "RMANTREE", }.items() : - commandEnv["ENV"][envVar] = commandEnv[option] + if commandEnv[option] != "" : + commandEnv["ENV"][envVar] = commandEnv[option] def runCommand( command ) :