If you want to create a package, you need to understand how Python translates file names into module names.
mymodule.py mymodule, , Python. , ( ).
- __init__.py. - , , . Python, __init__.py. , mypackage/__init__.py mypackage.
__init__.py Python (, , __init__, , , ).
, , :
toplevel/
mymodule/
__init__.py
submodule.py
Python toplevel.