mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
tstmem.py: Try importing from libxmlmods.libxml2mod if needed
Distutils builds place libxml2mod.pyd under the libxmlmods subdir, so try this directory if 'import libxml2mod' failed.
This commit is contained in:
parent
6e169c1490
commit
1b7d4e2bcc
@ -1,6 +1,11 @@
|
||||
#!/usr/bin/python -u
|
||||
import libxml2
|
||||
import libxml2mod
|
||||
|
||||
try:
|
||||
import libxml2mod
|
||||
except ModuleNotFoundError:
|
||||
from libxmlmods import libxml2mod
|
||||
|
||||
import sys
|
||||
|
||||
def error(msg, data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user