From 710f5c088e81ea896c8ff693e1ab59a3dc5ce009 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 28 Oct 2024 07:48:42 +0100 Subject: [PATCH] Revert "testsuite: Fix introspection test on Windows" This change is no longer necessary now that we properly set the right directory for the needed DLLs. This reverts commit 3471c22f52a396fc04eb064eb363afa8f098cd6a. --- testsuite/introspection/api.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/testsuite/introspection/api.py b/testsuite/introspection/api.py index 9bbbedfe13..264e831585 100755 --- a/testsuite/introspection/api.py +++ b/testsuite/introspection/api.py @@ -1,19 +1,7 @@ #! /usr/bin/env python3 -import os import sys -# Python 3.8.x or later on Windows require os.add_dll_directory() -# to be called on every directory that contains the required -# non-bundled, non-system DLLs of a module so that the module can -# be loaded successfully by Python. Make things easiler for people -# by calling os.add_dll_directory() on the valid paths in %PATH%. -if hasattr(os, 'add_dll_directory'): - paths = reversed(os.environ['PATH'].split(os.pathsep)) - for path in paths: - if path != '' and os.path.isdir(path): - os.add_dll_directory(path) - try: import gi except ImportError: