diff --git a/python/rapid_structure/setup_layout.py b/python/rapid_structure/setup_layout.py index b464989..5ed0d94 100644 --- a/python/rapid_structure/setup_layout.py +++ b/python/rapid_structure/setup_layout.py @@ -13,7 +13,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - return output[0].split(' ')[-1][1:-1] + return output[0].split(' ')[-1][1:-2] return None diff --git a/python/rapid_structure/setup_table.py b/python/rapid_structure/setup_table.py index 5e7758e..bf1b9c5 100644 --- a/python/rapid_structure/setup_table.py +++ b/python/rapid_structure/setup_table.py @@ -13,7 +13,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - return output[0].split(' ')[-1][1:-1] + return output[0].split(' ')[-1][1:-2] return None diff --git a/python/setup_onnxruntime.py b/python/setup_onnxruntime.py index d3eb044..3c6adea 100644 --- a/python/setup_onnxruntime.py +++ b/python/setup_onnxruntime.py @@ -13,7 +13,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - latest_version = output[0].split(' ')[-1][1:-1] + latest_version = output[0].split(' ')[-1][1:-2] return latest_version return None diff --git a/python/setup_openvino.py b/python/setup_openvino.py index 5d8350b..244be8d 100644 --- a/python/setup_openvino.py +++ b/python/setup_openvino.py @@ -12,7 +12,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - latest_version = output[0].split(' ')[-1][1:-1] + latest_version = output[0].split(' ')[-1][1:-2] return latest_version return None