Environment variables

Hi, is there a way to use and modify environment variables to automate render, resources and file paths inside blender?, kind of how in houdini you can use $HIP to refer to this project location, or $JOB, or $HIPFILE, you get the idea :slight_smile:

thank you in advance.

os.environ.get() and the very slightly-different os.getenv() can access environment variables within Python.

Wow, that’s great, does that works inside a path?, what I mean is, can I call the variable using python from let’s say the output path from the render panel?, or does it has to be from a script?

like a token for the name.