Skip to content

Commit

Permalink
update rename ~/.benchmark to ~/.osb and add symlink
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Oviedo <mikeovi@amazon.com>
  • Loading branch information
OVI3D0 committed Jan 2, 2025
1 parent 477aad9 commit 10914e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osbenchmark/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@

def benchmark_confdir():
default_home = os.path.expanduser("~")
return os.path.join(os.getenv("BENCHMARK_HOME", default_home), ".benchmark")
old_path = os.path.join(default_home, ".benchmark")
new_path = os.path.join(default_home, ".osb")
if os.path.exists(old_path) and not os.path.exists(new_path):
os.symlink(old_path, new_path)
return os.path.join(os.getenv("BENCHMARK_HOME", default_home), ".osb")


def benchmark_root():
Expand Down

0 comments on commit 10914e7

Please sign in to comment.