Hi , so I have started development with python and I am currently using Pipenv for managing my dependencies of my project. Now I have to create multiple environments for staging , development and production. I integrated python-dotenv but I am having a few issues with that. I want to know if there is a way to load the env file and then inject those environment variables in the process. I want to manage multiple versions. I created a script and tried to load custom env files on the basis of ENV environment variable
dev = “export ENV=‘DEV’ && python3.9 ./init.py”
but when I try to run this script I get an error
“the command export (from dev) could not be found within PATH.”
If anyone knows a clean way to inject environment variables from the script itself in Pipenv