@ Introducing Python: Modern Computing in Simple Packages by Bill Lubanovic (No. 3104 / 12833)
a file named
__init__.py
. This can be empty, but Python needs it to treat the directory containing it as a package.
Related: What is __init__.py
for?
answered Nov 7 '10 at 3:31
caritos
An example of importing mydir / spam /
is introduced in the answer by.
Recommended Posts