1
0
mirror of https://github.com/moparisthebest/SickRage synced 2025-01-08 04:18:09 -05:00
SickRage/lib/lxml/__init__.py
2014-03-28 21:32:46 -07:00

21 lines
551 B
Python

# this is a package
def get_include():
"""
Returns a list of header include paths (for lxml itself, libxml2
and libxslt) needed to compile C code against lxml if it was built
with statically linked libraries.
"""
import os
lxml_path = __path__[0]
include_path = os.path.join(lxml_path, 'includes')
includes = [include_path, lxml_path]
for name in os.listdir(include_path):
path = os.path.join(include_path, name)
if os.path.isdir(path):
includes.append(path)
return includes