I want to print in the console if virtualenv is activated.
Given that activated environment is "myvirtualenv", code should be like this:
echo some_function
and result will be
myvirtualenv
I want to print in the console if virtualenv is activated.
Given that activated environment is "myvirtualenv", code should be like this:
echo some_function
and result will be
myvirtualenv
virtualenv's activation script sets "VIRTUAL_ENV" environment variable. Just print it:
echo "$VIRTUAL_ENV"