diff --git a/benchmarks/benchmark_base.py b/benchmarks/benchmark_base.py index 1d8ec4e5309..c4498396b74 100644 --- a/benchmarks/benchmark_base.py +++ b/benchmarks/benchmark_base.py @@ -29,12 +29,9 @@ class BenchmarkBase: timeout = 600 @staticmethod - def split_path(path): - return path.split('/') - - def get_relative_path(self, partial_path: str): + def get_relative_path(partial_path: str): path = dirname(realpath(__file__)) - targets = self.split_path(partial_path) + targets = Path(partial_path).parts for target in targets: path = join(path, target)