Re: [Tutor] project directory structure

2016-08-28 Thread Alex Kleider
On 2016-08-27 15:23, c...@zip.com.au wrote: On 27Aug2016 09:06, Alex Kleider wrote: On 2016-08-26 21:58, Ben Finney wrote: Alex Kleider 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

Re: [Tutor] project directory structure

2016-08-27 Thread cs
On 27Aug2016 09:06, Alex Kleider wrote: On 2016-08-26 21:58, Ben Finney wrote: Alex Kleider 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 t

Re: [Tutor] project directory structure

2016-08-27 Thread Alex Kleider
On 2016-08-26 21:58, Ben Finney wrote: Alex Kleider 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’ comm

Re: [Tutor] project directory structure

2016-08-26 Thread Ben Finney
Alex Kleider 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 u

Re: [Tutor] project directory structure

2016-08-25 Thread Alex Kleider
On 2016-08-25 21:27, Ben Finney wrote: That's exactly the wrong thing to do. Your shebang line should *not* assume a custom location of the Python interpreter. It's the responsibility of the operating system or virtualenv to provide the Python interpreter command in a standard place. Instead

Re: [Tutor] project directory structure

2016-08-25 Thread Ben Finney
Alex Kleider writes: > I'm still struggling with what is the best way to set up a project > directory. One thing to learn is that there's no one right way that is universally applicable. In particular, you are asking about *social* conventions here. These are prone to change and negotiation and

[Tutor] project directory structure

2016-08-25 Thread Alex Kleider
I'm still struggling with what is the best way to set up a project directory. All the sources I've read seem to agree that one should have a top level project directory under which one might expect to find the following: COPYING.txt # or LICENSE.txt README.rst setup.py and if the pr

Re: [Tutor] Project directory structure

2014-01-30 Thread Steven D'Aprano
On Wed, Jan 29, 2014 at 10:45:53PM +0530, Reuben wrote: > Hi, > > Do we need to follow any particular directory structure for creating any > New projects or could we just randomly create a folder containing the > script of interest? Yes and no. If all you're doing is writing a single file script

[Tutor] Project directory structure

2014-01-29 Thread Reuben
Hi, Do we need to follow any particular directory structure for creating any New projects or could we just randomly create a folder containing the script of interest? Regards, Reuben ___ Tutor maillist - Tutor@python.org To unsubscribe or change subsc