1.1 --- a/XSLForms/Output.py Tue Nov 28 22:30:23 2006 +0000
1.2 +++ b/XSLForms/Output.py Tue Nov 28 22:30:35 2006 +0000
1.3 @@ -21,7 +21,15 @@
1.4 """
1.5
1.6 import Constants
1.7 -import libxsltmod, libxml2mod
1.8 +
1.9 +# Try the conventional import first.
1.10 +
1.11 +try:
1.12 + import libxsltmod, libxml2mod
1.13 +except ImportError:
1.14 + from libxmlmods import libxml2mod
1.15 + from libxmlmods import libxsltmod
1.16 +
1.17 import libxml2dom
1.18 import urllib
1.19
2.1 --- a/XSLTools/XSLOutput.py Tue Nov 28 22:30:23 2006 +0000
2.2 +++ b/XSLTools/XSLOutput.py Tue Nov 28 22:30:35 2006 +0000
2.3 @@ -22,7 +22,13 @@
2.4
2.5 # NOTE: Make this use other XSLT implementations, too.
2.6
2.7 -import libxsltmod
2.8 +# Try the conventional import first.
2.9 +
2.10 +try:
2.11 + import libxsltmod
2.12 +except ImportError:
2.13 + from libxmlmods import libxsltmod
2.14 +
2.15 import libxml2dom
2.16 import os, tempfile
2.17