diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-11 21:09:59 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-11 21:09:59 +0200 |
| commit | 3bf39c214f62a43aa8b0e72112d65f079509f08a (patch) | |
| tree | 0a8e6973654ffc302916f64362f9e778119d5ddc /scripts/print_facts.py | |
| parent | bdd47a691e5780a5b69d373382b343194fa123d9 (diff) | |
| download | allocbench-3bf39c214f62a43aa8b0e72112d65f079509f08a.tar.gz allocbench-3bf39c214f62a43aa8b0e72112d65f079509f08a.zip | |
[globalvars] remove list of available benchmarks from globalvars.BENCHMARK to benchmark.AVAIL_BENCHMARKS
Diffstat (limited to 'scripts/print_facts.py')
| -rwxr-xr-x | scripts/print_facts.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/print_facts.py b/scripts/print_facts.py index ec9404c..6099b6f 100755 --- a/scripts/print_facts.py +++ b/scripts/print_facts.py @@ -20,17 +20,15 @@ import argparse import importlib -import inspect import os import sys -CURRENTDIR = os.path.dirname( - os.path.abspath(inspect.getfile(inspect.currentframe()))) +CURRENTDIR = os.path.dirname(os.path.abspath(__file__)) PARENTDIR = os.path.dirname(CURRENTDIR) sys.path.insert(0, PARENTDIR) +from allocbench.benchmark import AVAIL_BENCHMARKS import allocbench.facter as facter -from allocbench.globalvars import BENCHMARKS from allocbench.plots import print_facts, print_common_facts from allocbench.util import print_error @@ -49,7 +47,7 @@ def main(): cwd = os.getcwd() os.chdir(args.results) - for benchmark in BENCHMARKS: + for benchmark in AVAIL_BENCHMARKS: bench_module = importlib.import_module( f"allocbench.benchmarks.{benchmark}") |
