Skip to content

Commit

Permalink
Updated the function get relative paths for benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
airvzxf committed Apr 19, 2024
1 parent b1eb517 commit 44287de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions benchmarks/benchmark_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44287de

Please sign in to comment.