On 2016-08-26 21:58, Ben Finney wrote:
Alex Kleider <aklei...@sonic.net> writes:

Am I to assume that if I have activated a virtualenv, then the
following shebang
#!/usr/bin/env python
will use the python specified in the venv/bin/?

Yes, the purpose of that shebang is to tell the OS that *whichever*
‘python’ command is found first, is the one to use.


Thanks for clarifying.
It was only after poking around and experimenting that I discovered that what the virtualenv activate command actually does is place its bin directory at the beginning of the PYTHONPATH environment variable- something I've no where seen explicitly documented.
cheers,
Alex

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to