Skip to content

Commit

Permalink
SConstruct : Sanitise commandEnv environment variables
Browse files Browse the repository at this point in the history
Otherwise the `RENDERMAN_ROOT` "" default turns into `RMANTREE = ""`, which leads to errors in the documentation build as we try to import GafferRenderMan.
  • Loading branch information
murraystevenson committed Feb 28, 2025
1 parent 7b47e54 commit 1f2c23b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) :

Expand Down

0 comments on commit 1f2c23b

Please sign in to comment.