1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-05 23:35:48 +03:00

updated with new version from Stphane Bidoul Daniel

* python/libxsl.py: updated with new version from Stphane Bidoul
Daniel
This commit is contained in:
Daniel Veillard
2002-11-24 13:01:24 +00:00
parent fe98a169a2
commit 0e453d81ed
2 changed files with 45 additions and 36 deletions

View File

@@ -1,3 +1,7 @@
Sun Nov 24 13:58:48 CET 2002 Daniel Veillard <daniel@veillard.com>
* python/libxsl.py: updated with new version from St<53>phane Bidoul
Sat Nov 23 22:49:08 CET 2002 Igor Zlatkovic <igor@stud.fh-frankfurt.de> Sat Nov 23 22:49:08 CET 2002 Igor Zlatkovic <igor@stud.fh-frankfurt.de>
* win32/libxslt.def.src: exported new functions * win32/libxslt.def.src: exported new functions

View File

@@ -4,9 +4,14 @@
# loader to work in that mode if feasible # loader to work in that mode if feasible
# #
import sys import sys
try: if not hasattr(sys,'getdlopenflags'):
import libxml2mod
import libxsltmod
import libxml2
else:
try:
from dl import RTLD_GLOBAL, RTLD_NOW from dl import RTLD_GLOBAL, RTLD_NOW
except ImportError: except ImportError:
RTLD_GLOBAL = -1 RTLD_GLOBAL = -1
RTLD_NOW = -1 RTLD_NOW = -1
try: try:
@@ -25,7 +30,7 @@ except ImportError:
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \ print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
"on this platform: %s" % (osname) "on this platform: %s" % (osname)
if RTLD_GLOBAL != -1 and RTLD_NOW != -1: if RTLD_GLOBAL != -1 and RTLD_NOW != -1:
try: try:
flags = sys.getdlopenflags() flags = sys.getdlopenflags()
sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW) sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW)
@@ -39,7 +44,7 @@ if RTLD_GLOBAL != -1 and RTLD_NOW != -1:
import libxml2mod import libxml2mod
import libxsltmod import libxsltmod
import libxml2 import libxml2
else: else:
import libxml2mod import libxml2mod
import libxsltmod import libxsltmod
import libxml2 import libxml2