I have the following folder structure:
app
__init__.py
utils
__init__.py
You probably want to run python -m products.fish
. The difference between that and python products/fish.py
is that the former is roughly equivalent to doing import products.fish
in the shell (but with __name__
set to __main__
), while the latter does not have awareness of its place in a package hierarchy.