mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-04-19 05:42:15 +03:00
Add the directories containing required DLLs with os.add_dll_directory to make tests work on MinGW.
9 lines
374 B
Python
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'))
|