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 18, 2024
1 parent b1eb517 commit 6e0fd31
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions benchmarks/benchmark_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ class BenchmarkBase:
# the total time for all the repetitions for each benchmark.
timeout = 600

@staticmethod
def split_path(path):
return path.split('/')

def get_relative_path(self, 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 6e0fd31

Please sign in to comment.