I have a file named .env in my code directory .env has different configs
Eg : username = "xyz"
password = "abcd"
In my code directory I have a folder called scripts
Inside scripts I have a script named "control.py" which needs to read the config from .env
How can I achieve this?
The structure is something as below
/var/www/html/code/.env
/var/www/html/code/scripts/control.py
.env has all the config stuffs and control.py needs to read these config.