How to reference environment variables in a .cfg file

I’m hosting a python project that uses a .cfg file how can I access .env variables from a .cfg