diff --git a/python/lsst/pipe/base/simple_pipeline_executor.py b/python/lsst/pipe/base/simple_pipeline_executor.py index 50a01dcd2..e9a9bf9a4 100644 --- a/python/lsst/pipe/base/simple_pipeline_executor.py +++ b/python/lsst/pipe/base/simple_pipeline_executor.py @@ -29,7 +29,6 @@ __all__ = ("SimplePipelineExecutor",) -import os from collections.abc import Iterable, Iterator, Mapping from typing import Any @@ -507,7 +506,7 @@ def use_local_butler( quantum graph or their original `~lsst.daf.butler.CollectionType.RUN` collections. """ - if not os.path.exists(root): + if not Butler.has_repo_config(root): Butler.makeRepo(root) out_butler = Butler.from_config(root, writeable=True)