Hi, 
 
Please find attached a minor portability patch for pyxsltproc.py.
 
"import os" is more portable than "import posix", which does not work on
windows with python 2.5.
 
-sbi
Index: pyxsltproc.py
===================================================================
--- pyxsltproc.py       (revision 1452)
+++ pyxsltproc.py       (working copy)
@@ -6,7 +6,7 @@
 #
 import sys
 import time
-import posix
+import os
 import string
 import libxml2
 # Memory debug specific
@@ -185,7 +185,7 @@
             nonet = 1
         elif args[i] == "-catalogs" or args[i] == "--catalogs":
             try:
-                catalogs = posix.environ['SGML_CATALOG_FILES']
+                catalogs = os.environ['SGML_CATALOG_FILES']
             except:
                 catalogs = None
             if catalogs != none:
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to