Make libxml2 optional again

This commit is contained in:
Sam Ruby 2007-08-09 09:28:30 -04:00
parent 64a3ec8727
commit 5abeeebc76
2 changed files with 3 additions and 0 deletions

View File

@ -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' %

View File

@ -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')