AcademySoftwareFoundation / rez

An integrated package configuration, build and deployment system for software
https://rez.readthedocs.io
Apache License 2.0
942 stars 335 forks source link

Rez auto delete rxt temp files make subprocess rez-context faild. #1736

Open zclongpop123 opened 5 months ago

zclongpop123 commented 5 months ago

Rez Version: >= 3.0 Command: rez-env houdini-20 -- houdini

Rez will auto delete the temp rxt files, and when I use rez-context --tools in subprocess, command will faild, Command '['rez-context', '--tools']' returned non-zero exit status 1.

and I find the reason is rxt file is not exists, So, how to keep rxt temp files in any way ?

maxnbk commented 5 months ago

This is for debugging, but perhaps this will do what you need.

https://rez.readthedocs.io/en/stable/environment.html#envvar-REZ_KEEP_TMPDIRS

Be aware you would need to cleanup TMPDIRs on your own afterward, they will be retained and can bloat the location of the tmpdirs.