Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

24 rader
575 B

  1. # this is a package
  2. __version__ = "4.7.1"
  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. for name in os.listdir(include_path):
  14. path = os.path.join(include_path, name)
  15. if os.path.isdir(path):
  16. includes.append(path)
  17. return includes