I am running python 3.6 in a pipenv shell. I want to set the value of this python environment variable PYTHONASYNCIODEBUG
to 1
without affecting my user environment variables that are outside of the pipenv shell. How do I make this setting?
I am running python 3.6 in a pipenv shell. I want to set the value of this python environment variable PYTHONASYNCIODEBUG
to 1
without affecting my user environment variables that are outside of the pipenv shell. How do I make this setting?
in a shell
Yes?
Perhaps you are wondering how to do this only when in a pipenv environment from a shell? Assuming a bash shell, detect when in a pipenv environment by checking
PIPENV_ACTIVE
.env file
A different approach is to use a
.env
file. Create such a file in your project directory with contents