| An Introduction to Python by Guido van Rossum and Fred L. Drake, Jr. Paperback (6"x9"), 124 pages ISBN 0954161769 RRP £12.95 ($19.95) Sales of this book support the Python Software Foundation! Get a printed copy>>> |
6.4.3 Packages in Multiple Directories
Packages support one more special attribute, __path__. This
is initialized to be a list containing the name of the directory
holding the package's ‘__init__.py’ before the code in that file
is executed. This variable can be modified; doing so affects future
searches for modules and subpackages contained in the package.
While this feature is not often needed, it can be used to extend the set of modules found in a package.
| ISBN 0954161769 | An Introduction to Python | See the print edition |