Add option to search the local lib path
- Locally and in Windows actions the second option is needed
diff --git a/test/py/util.py b/test/py/util.py
index c2b3f5c..31e8475 100644
--- a/test/py/util.py
+++ b/test/py/util.py
@@ -27,6 +27,13 @@
def local_libpath():
globdir = os.path.join(_ROOT_DIR, 'lib', 'py', 'build', 'lib.*')
+ # Consider MM.mm and MMmm as valid local lib paths.
+ # On Windows 11 with Python 3.13.9 the second option is required
+ version_formats = [
+ '-%d.%d' % (sys.version_info[0], sys.version_info[1]),
+ '-%d%d' % (sys.version_info[0], sys.version_info[1])
+ ]
for libpath in glob.glob(globdir):
- if libpath.endswith('-%d.%d' % (sys.version_info[0], sys.version_info[1])):
- return libpath
+ for fmt in version_formats:
+ if libpath.endswith(fmt):
+ return libpath
\ No newline at end of file