From 4bfafe00eec67008b7ad596263908f79f18d9a50 Mon Sep 17 00:00:00 2001 From: Lucas Gomide Date: Tue, 24 Jun 2025 10:20:05 -0300 Subject: [PATCH] feat: skip cli/templates folder while looking for Crew --- src/crewai/cli/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/cli/utils.py b/src/crewai/cli/utils.py index de3f292d5..a3fa79cdf 100644 --- a/src/crewai/cli/utils.py +++ b/src/crewai/cli/utils.py @@ -275,7 +275,7 @@ def get_crews(crew_path: str = "crew.py", require: bool = False) -> list[Crew]: for search_path in search_paths: for root, _, files in os.walk(search_path): - if crew_path in files: + if crew_path in files and "cli/templates" not in root: crew_os_path = os.path.join(root, crew_path) try: spec = importlib.util.spec_from_file_location(