import os import sys module = os.path.join(os.path.dirname(os.path.abspath(__file__))) sys.path.append(module)