def include_dirs_from_path():
 include_dirs = []
 for p in os.environ['PATH'].split(os.path.pathsep):
  if p.endswith('/'):
   p = p[:(-1)]
  if p.endswith('bin'):
   include_dirs.append((p[:(-3)] + 'include'))
 return include_dirs

def include_dirs_from_path ( ) : include_dirs = [ ] for p in os . environ [ 'PATH' ] . split ( os . path . pathsep ) : if p . endswith ( '/' ) : p = p [ : ( - 1 ) ] if p . endswith ( 'bin' ) : include_dirs . append ( ( p [ : ( - 3 ) ] + 'include' ) ) return include_dirs
check the exec path for include dirs .