lxml

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, 'include')
    13      includes = [lxml_path]
    14
    15      for name in os.listdir(include_path):
    16          includes.append(os.path.join(include_path, name))
    17
    18      return includes
    19