I have a python project pypypy with 2 files: __main__.py
and foo.py
.
In __main__.py
I simply do import via import foo
. It all works fine.
Now, I want to distribute it with pypi. After installing my module I'm execution it with python -m pypypy
. When I do that, the import statement doesn't work anymore. However import pypypy.foo
does the job.
Should I change all my imports before distribution or there is a better way?