Package lxml

[hide private]
[frames] | no frames]

# Source Code for Package lxml

     1  # this is a package
     2
     3  import os
     4
     5 -def get_include():
     6      """
     7      Returns a list of header include paths (for lxml itself, libxml2
     8      and libxslt) needed to compile C code against lxml if it was built
     9      with statically linked libraries.
    10      """
    11      lxml_path = __path__[0]
    12      include_path = os.path.join(lxml_path, 'includes')
    13      includes = [include_path, lxml_path]
    14
    15      for name in os.listdir(include_path):
    16          path = os.path.join(include_path, name)
    17          if os.path.isdir(path):
    18              includes.append(path)
    19
    20      return includes
    21