I\'ve the following source code structure
/testapp/ /testapp/__init__.py /testapp/testmsg.py /testapp/sub/ /testapp/sub/__init__.py /testapp/sub/testprinter.
For people who still have this same problem. This is how I solve mine:
import unittest import sys import os sys.path.append(os.getcwd() + '/..') from my_module.calc import *