First page Back Continue Last page Overview Graphics

Module Packages

© Irina Fischer

It's possible to put several modules into a Package.

So, a package is a directory with Python files.

A package is imported like a “normal” module.

Each directory inside of the Python path, which should function as

a package needs to

contain a file named

__init__.py,

Otherwise the package

can't be used as a

package, i.e. it can't

be imported!