Make libxml2 optional again
This commit is contained in:
parent
64a3ec8727
commit
5abeeebc76
@ -52,6 +52,7 @@ def run(script, doc, output_file=None, options={}):
|
||||
|
||||
cmdopts = []
|
||||
for key,value in options.items():
|
||||
if value.find("'")>=0 and value.find('"')>=0: continue
|
||||
cmdopts += ['--stringparam', key, quote(value, apos=r"\'")]
|
||||
|
||||
os.system('xsltproc %s %s %s > %s' %
|
||||
|
@ -113,6 +113,8 @@ try:
|
||||
import libxml2
|
||||
except ImportError:
|
||||
|
||||
delattr(ApplyTest,'test_apply_filter_mememe')
|
||||
|
||||
try:
|
||||
import win32pipe
|
||||
(stdin,stdout) = win32pipe.popen4('xsltproc -V', 't')
|
||||
|
Loading…
Reference in New Issue
Block a user