From 10914e7f87d4608f18eefe32918f44c41dab1162 Mon Sep 17 00:00:00 2001 From: Michael Oviedo Date: Thu, 2 Jan 2025 21:36:16 +0000 Subject: [PATCH] update rename ~/.benchmark to ~/.osb and add symlink Signed-off-by: Michael Oviedo --- osbenchmark/paths.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osbenchmark/paths.py b/osbenchmark/paths.py index 305275fe..a3831492 100644 --- a/osbenchmark/paths.py +++ b/osbenchmark/paths.py @@ -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():