diff --git a/Pipfile b/Pipfile new file mode 100644 index 00000000000..b89c56f7cd9 --- /dev/null +++ b/Pipfile @@ -0,0 +1,12 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] + +[dev-packages] + +[requires] +python_version = "3.11" +python_full_version = "3.11.8" diff --git a/Pipfile.lock b/Pipfile.lock new file mode 100644 index 00000000000..7b99c4ddf56 --- /dev/null +++ b/Pipfile.lock @@ -0,0 +1,21 @@ +{ + "_meta": { + "hash": { + "sha256": "68043c91911727f5087a664d0a0a6dc5875e83b6aa72e10f448c8bed5d5d77b7" + }, + "pipfile-spec": 6, + "requires": { + "python_full_version": "3.11.8", + "python_version": "3.11" + }, + "sources": [ + { + "name": "pypi", + "url": "https://pypi.org/simple", + "verify_ssl": true + } + ] + }, + "default": {}, + "develop": {} +} 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)