aboutsummaryrefslogtreecommitdiff
path: root/scripts/print_facts.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/print_facts.py')
-rwxr-xr-xscripts/print_facts.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/print_facts.py b/scripts/print_facts.py
index 831cc78..389028e 100755
--- a/scripts/print_facts.py
+++ b/scripts/print_facts.py
@@ -29,9 +29,10 @@ CURRENTDIR = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentfram
PARENTDIR = os.path.dirname(CURRENTDIR)
sys.path.insert(0, PARENTDIR)
-import src.facter
-from src.plots import print_facts, print_common_facts
-from src.util import print_error
+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
def main():
@@ -40,15 +41,15 @@ def main():
args = parser.parse_args()
# Load common facts
- src.facter.load_facts(args.results)
+ facter.load_facts(args.results)
print_common_facts()
cwd = os.getcwd()
os.chdir(args.results)
- for benchmark in src.globalvars.benchmarks:
- bench_module = importlib.import_module(f"src.benchmarks.{benchmark}")
+ for benchmark in BENCHMARKS:
+ bench_module = importlib.import_module(f"allocbench.benchmarks.{benchmark}")
if not hasattr(bench_module, benchmark):
print_error(f"{benchmark} has no member {benchmark}")