You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
551 B

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