diff --git a/binding/python/bench_test.py b/binding/python/bench_test.py index 22abca6..28a4ba5 100644 --- a/binding/python/bench_test.py +++ b/binding/python/bench_test.py @@ -49,7 +49,7 @@ def run_bench_test(db_path: str, src_path: str, cache_policy: str): # create the searcher searcher = None try: - searcher = create_searcher(args.db, args.cache_policy) + searcher = create_searcher(db_path, cache_policy) except Exception as e: print("failed to create searcher: {}".format(str(e))) return @@ -121,4 +121,4 @@ if __name__ == "__main__": sys.exit() # run the search test - run_bench_test(args.db, args.src, args.cache_policy) \ No newline at end of file + run_bench_test(args.db, args.src, args.cache_policy) diff --git a/binding/python/search_test.py b/binding/python/search_test.py index 650780c..fab4f46 100644 --- a/binding/python/search_test.py +++ b/binding/python/search_test.py @@ -49,7 +49,7 @@ def run_search_test(db_path: str, cache_policy: str): # create the searcher searcher = None try: - searcher = create_searcher(args.db, args.cache_policy) + searcher = create_searcher(db_path, cache_policy) except Exception as e: print("failed to create searcher: {}".format(str(e))) return @@ -106,4 +106,4 @@ if __name__ == "__main__": sys.exit() # run the search test - run_search_test(args.db, args.cache_policy) \ No newline at end of file + run_search_test(args.db, args.cache_policy)