aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/benchmark.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 46177a7..28eaadd 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -85,6 +85,11 @@ class Benchmark (object):
if not hasattr(self, k):
setattr(self, k, Benchmark.defaults[k])
+ # Set result_dir
+ if not hasattr(self, "result_dir"):
+ self.result_dir = os.path.abspath(os.path.join(src.globalvars.resdir,
+ self.name))
+
# non copy types
if not hasattr(self, "args"):
self.args = {}
@@ -114,6 +119,7 @@ class Benchmark (object):
print_debug("Args:", self.args)
print_debug("Requirements:", self.requirements)
print_debug("Results dictionary:", self.results)
+ print_debug("Results directory:", self.result_dir)
def save(self, path=None):
f = path if path else self.name + ".save"