The knee Module

The knee module is a Python reimplementation of the package import mechanism that was introduced in Python 1.5. Since this is already supported by the standard interpreter, this module is mainly provided to show how things are done in there. It does work, though. Just import the module to enable it, as Example 14-30 shows.

Example 14-30. Using the knee Module

File: knee-example-1.py

import knee

# that's all, folks!

Get Python Standard Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.