Skip to content

Commit 0a697eb

Browse files
committed
try to find dll
1 parent 9b7cfc4 commit 0a697eb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/cc/current_py_cc_headers/abi3_headers_linkage_test.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
import sys
44
import pefile
55
import unittest
6+
import pathlib
67

78
from python.runfiles import runfiles
89

910
class CheckLinkageTest(unittest.TestCase):
1011
def test_linkage(self):
1112
rf = runfiles.Create()
12-
file_path = rf.Rlocation("_main/tests/cc/current_py_cc_headers/libbin_abi3.dll")
13-
if not file_path:
14-
self.fail("dll not found")
13+
d = rf.Rlocation("_main/tests/cc/current_py_cc_headers")
14+
d = pathlib.Path(d)
15+
for f in d.glob("*.dll"):
16+
print(f)
1517

16-
print(f"[*] Analyzing dependencies for: {os.path.basename(file_path)}\n")
18+
d = rf.Rlocation("_main/tests/cc/current_py_cc_headers")
19+
print(f"[*] Analyzing dependencies for: {file_path}\n")
1720

1821
try:
1922
# Parse the PE file

0 commit comments

Comments
 (0)