1
0
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:
Chun-wei Fan 2021-07-22 14:46:48 +08:00 committed by Nick Wellnhofer
parent 6e169c1490
commit 1b7d4e2bcc

View File

@ -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):