How to do python import for all expressions globally

Hello,
please may I ask whether it is possible to import library in a way that it would available in all expressions?

Hello,
please does anyone know how to approach this?

For example I would like to import os and use it in expressions across all parameters to get environment variables configured for current TD environment (using os.getenv("SOME_ENV_VAR")). However I can’t seem to figure out how to import os in a way, that it would be available for expressions. Thanks.

mod.os.getenv()
Bur you can also just call var() to get env variable values.

2 Likes

Aah, thank you so much. That’s great, I didn’t know about var() at all. :slight_smile: