Skip to content

Commit 5dff866

Browse files
authored
note on __init__.py as empty file
1 parent 6a0f79d commit 5dff866

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

source/tutorials/packaging-projects.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ To create this project locally, create the following file structure:
2525
Once you create this structure, you'll want to run all of the commands in this
2626
tutorial within the top-level folder - so be sure to ``cd packaging_tutorial``.
2727

28+
:file:`example_pkg/__init__.py` is required to import the directory as a package,
29+
and can simply be an empty file.
30+
2831
.. _Python documentation for packages and modules:
2932
https://docs.python.org/3/tutorial/modules.html#packages
3033

0 commit comments

Comments
 (0)