I'd like to know how do I know which source I'm running the Python
from.
For example, if I installed Python 3.5 on my machine and created a Virtualenv, how could I know from Python itself the source of execution of that binary?
For example, if I run Python
, I know the full path of the executable, such as /usr/bin/python
, for example.
In the specific case, I do not want anything referring to Virtual Env, but to know by Python the source path of the binary.