mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +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:
@ -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
|
||||||
|
@ -4,45 +4,50 @@
|
|||||||
# 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'):
|
||||||
from dl import RTLD_GLOBAL, RTLD_NOW
|
|
||||||
except ImportError:
|
|
||||||
RTLD_GLOBAL = -1
|
|
||||||
RTLD_NOW = -1
|
|
||||||
try:
|
|
||||||
import os
|
|
||||||
osname = os.uname()[0]
|
|
||||||
if osname == 'Linux':
|
|
||||||
RTLD_GLOBAL = 0x00100
|
|
||||||
RTLD_NOW = 0x00002
|
|
||||||
#
|
|
||||||
# is there a better method ?
|
|
||||||
#
|
|
||||||
else:
|
|
||||||
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
|
||||||
"on this platform: %s" % (osname)
|
|
||||||
except:
|
|
||||||
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
|
||||||
"on this platform: %s" % (osname)
|
|
||||||
|
|
||||||
if RTLD_GLOBAL != -1 and RTLD_NOW != -1:
|
|
||||||
try:
|
|
||||||
flags = sys.getdlopenflags()
|
|
||||||
sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW)
|
|
||||||
try:
|
|
||||||
import libxml2mod
|
|
||||||
import libxsltmod
|
|
||||||
import libxml2
|
|
||||||
finally:
|
|
||||||
sys.setdlopenflags(flags)
|
|
||||||
except:
|
|
||||||
import libxml2mod
|
|
||||||
import libxsltmod
|
|
||||||
import libxml2
|
|
||||||
else:
|
|
||||||
import libxml2mod
|
import libxml2mod
|
||||||
import libxsltmod
|
import libxsltmod
|
||||||
import libxml2
|
import libxml2
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
from dl import RTLD_GLOBAL, RTLD_NOW
|
||||||
|
except ImportError:
|
||||||
|
RTLD_GLOBAL = -1
|
||||||
|
RTLD_NOW = -1
|
||||||
|
try:
|
||||||
|
import os
|
||||||
|
osname = os.uname()[0]
|
||||||
|
if osname == 'Linux':
|
||||||
|
RTLD_GLOBAL = 0x00100
|
||||||
|
RTLD_NOW = 0x00002
|
||||||
|
#
|
||||||
|
# is there a better method ?
|
||||||
|
#
|
||||||
|
else:
|
||||||
|
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||||
|
"on this platform: %s" % (osname)
|
||||||
|
except:
|
||||||
|
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||||
|
"on this platform: %s" % (osname)
|
||||||
|
|
||||||
|
if RTLD_GLOBAL != -1 and RTLD_NOW != -1:
|
||||||
|
try:
|
||||||
|
flags = sys.getdlopenflags()
|
||||||
|
sys.setdlopenflags(RTLD_GLOBAL | RTLD_NOW)
|
||||||
|
try:
|
||||||
|
import libxml2mod
|
||||||
|
import libxsltmod
|
||||||
|
import libxml2
|
||||||
|
finally:
|
||||||
|
sys.setdlopenflags(flags)
|
||||||
|
except:
|
||||||
|
import libxml2mod
|
||||||
|
import libxsltmod
|
||||||
|
import libxml2
|
||||||
|
else:
|
||||||
|
import libxml2mod
|
||||||
|
import libxsltmod
|
||||||
|
import libxml2
|
||||||
|
|
||||||
#
|
#
|
||||||
# Everything below this point is automatically generated
|
# Everything below this point is automatically generated
|
||||||
|
Reference in New Issue
Block a user