I\'ve the following source code structure
/testapp/ /testapp/__init__.py /testapp/testmsg.py /testapp/sub/ /testapp/sub/__init__.py /testapp/sub/testprinter.
Use relative import like below
from .. import testmsg