import os import sys sys.path.insert(0, os.path.abspath(os.path.join( os.path.dirname(__file__), '..'))) import factorgraph # noqa (pep8 complains here. sorry pep8.)