We start by creating a separate submodule to contain the functionality, one for vector, and one for raster. First, create the vector/manager.py
file and start it up with the following imports:
import itertools, operator from .data import *
Next, create the file raster/manager.py
as follows:
import PIL, PIL.Image
To make these manager modules available to their respective vector
and raster
parent package, add the following import statement to both vector/__init__.py
and raster/__init__.py
:
import . import manager