Re: [Tutor] Should a "data" directory have a __init__.py file?

2016-01-18 Thread Oscar Benjamin
On 18 January 2016 at 04:27, Ben Finney wrote: > > The module import system will only recognise a directory as a “package” > (Python's technical term for “a point in the import hierarchy which > contains other things to import”) if that directory contains a file >

Re: [Tutor] Should a "data" directory have a __init__.py file?

2016-01-17 Thread Ben Finney
boB Stepp writes: > I can see no reason why I would need an __init__.py file for a data > directory. Yes, files will be read there, but there will be no code > there. Is this correct? That is correct. A directory of files is accessed just fine using the normal filesystem

[Tutor] Should a "data" directory have a __init__.py file?

2016-01-17 Thread boB Stepp
Py 3.4.4; W7-64-bit I've been reviewing all of the posts relevant to questions I asked last year on Python project directory structures. I was wondering about a data directory nested under the program's top-level directory. I can see no reason why I would need an __init__.py file for a data