diff options
| -rw-r--r-- | src/globalvars.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/globalvars.py b/src/globalvars.py index 23ffa8a..9a7e958 100644 --- a/src/globalvars.py +++ b/src/globalvars.py @@ -11,9 +11,14 @@ verbosity = 0 """Dict holding the allocators to compare""" allocators = {} +"""Directory of allocbench sources""" +srcdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) + +"""Source directory for all benchmarks""" +benchsrcdir = os.path.join(srcdir, "benchmarks") + """Root directory of allocbench""" -allocbenchdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) -allocbenchdir = os.path.dirname(allocbenchdir) +allocbenchdir = os.path.dirname(srcdir) """Path of the build directory""" builddir = os.path.join(allocbenchdir, "build") @@ -21,9 +26,6 @@ builddir = os.path.join(allocbenchdir, "build") """Directory were the benchmark results are stored""" resdir = None -"""Source directory for all benchmarks""" -benchsrcdir = os.path.join(allocbenchdir, "src", "benchmarks") - """List of available benchmarks""" benchmarks = [e[:-3] for e in os.listdir(os.path.join(allocbenchdir, benchsrcdir)) if e[-3:] == ".py" and e != "__init__.py"] |
