I would like to create a .env file in my project root that I could execute to initialize env vars inside a virtualenv when running.
Bonus points if I can do this automatically when I cd into the project root, like autoenv on linux.
This seems like such a simple thing to do but I have not found an answer anywhere on here as of yet. Please point me in the direction if there is one. Thanks for your time.
.batfile containing all of yourset VARIABLE=Xcommands. This can also be done with a PowerShell script. I also think that you can do this withos.environ['VARIABLE'] = 'X'in python.