diff --git a/Scripts/bench_all.py b/Scripts/bench_all.py index 392469f..1717229 100644 --- a/Scripts/bench_all.py +++ b/Scripts/bench_all.py @@ -29,11 +29,10 @@ import sys # Needed to include from ../Client/*.py PARENT = os.path.join(os.path.dirname(__file__), os.path.pardir) -sys.path.append(os.path.abspath(PARENT)) +sys.path.append(os.path.abspath(os.path.join(PARENT, 'Client'))) -from Client.utils import * -from Client.bench import run_benchmark -from bench_engine import run_benchmark +from utils import * +from bench import run_benchmark def get_default_network(args, network): @@ -60,7 +59,7 @@ def get_public_engine(engine, config): except OpenBenchBuildFailedException as error: print ('Failed to build %s...\n\nCompiler Output:' % (engine)) - for line in error.message.split('\n'): + for line in error.logs.split('\n'): print ('> %s' % (line)) print () diff --git a/Scripts/bench_engine.py b/Scripts/bench_engine.py index 32a5480..e27c355 100755 --- a/Scripts/bench_engine.py +++ b/Scripts/bench_engine.py @@ -26,9 +26,9 @@ import sys # Needed to include from ../Client/*.py PARENT = os.path.join(os.path.dirname(__file__), os.path.pardir) -sys.path.append(os.path.abspath(PARENT)) +sys.path.append(os.path.abspath(os.path.join(PARENT, 'Client'))) -from Client.bench import run_benchmark +from bench import run_benchmark if __name__ == '__main__':