1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-04-19 05:42:15 +03:00
libxslt/python/tests/setup_test.py
Nick Wellnhofer 8c2e8031b2 python: Fix tests on MinGW
Add the directories containing required DLLs with os.add_dll_directory
to make tests work on MinGW.
2023-09-05 17:00:41 +02:00

9 lines
374 B
Python

import os
if hasattr(os, 'add_dll_directory'):
os.add_dll_directory(os.path.join(os.getcwd(), '..', '..', 'libxslt', '.libs'))
os.add_dll_directory(os.path.join(os.getcwd(), '..', '..', 'libexslt', '.libs'))
libxml_src = os.getenv('LIBXML_SRC')
if libxml_src is not None and libxml_src != '':
os.add_dll_directory(os.path.join(libxml_src, '.libs'))