#!/usr/bin/python

import doctest
import drake
import drake.utils

doctest.testmod(drake)
doctest.testmod(drake.utils)

#!/usr/bin/python

import os
import os.path
import sys

myself = os.getcwd()
dir = os.path.dirname(__file__)
if dir:
  myself += '/%s' % dir
sys.path = [myself + '/../src'] + sys.path

import doctest
import drake
import drake.utils

doctest.testmod(drake)
doctest.testmod(drake.utils)


Add source tree in the path before launching doctest.