osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Import module from a different subdirectory


On Fri, 17 May 2019, duncan smith wrote:

> You could make the subdirectories Python packages. Google (or better
> DuckDuckGo) is your friend.

Duncan,

My understanding is that Python3 does not require subdirectories to have an
__init__.py file, only Python2 does. If that's not correct I'll add the
blank file.

Rich