Skip to content
Snippets Groups Projects
Commit d9d7794a authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Use removeprefix() and removesuffix() to be sure to trim the correct parts

parent a971550a
No related branches found
No related tags found
3 merge requests!37Merge changes from apertis/v2022-updates into apertis/v2022,!32[v2022 <- v2023dev3] Merge v2023dev3 in v2022,!25Add a new tool: apertis-abi-compare
......@@ -77,8 +77,7 @@ def generate_xml(xml, version, headers, libs):
def detect_libname(path):
my_lib = list(pathlib.Path(path).glob('**/*.so'))[0]
my_lib = my_lib.name
my_lib = re.sub("lib", "", my_lib)
my_lib = re.sub(".so", "", my_lib)
my_lib = my_lib.removeprefix("lib").removesuffix(".so")
return my_lib
def run_abi_checker(lib, xml_old, ver_old, xml_new, ver_new):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment