[Tutor] project directory structure

Alex Kleider akleider at sonic.net
Sat Aug 27 12:06:14 EDT 2016


On 2016-08-26 21:58, Ben Finney wrote:
> Alex Kleider <akleider at 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



More information about the Tutor mailing list