diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py index f162f9a00efa7..c28623123d999 100644 --- a/mlir/test/lit.cfg.py +++ b/mlir/test/lit.cfg.py @@ -106,7 +106,7 @@ def find_real_python_interpreter(): if sys.prefix != sys.base_prefix: copied_python = os.path.join(sys.prefix, "bin", "copied-python") else: - copied_python = os.path.join(config.lldb_build_directory, "copied-python") + copied_python = os.path.join(config.mlir_obj_root, "copied-python") # Avoid doing any work if we already copied the binary. if os.path.isfile(copied_python):