lxml
Package lxml
[hide private]
[frames] | no frames]

Source Code for Package lxml

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