mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
feat: skip cli/templates folder while looking for Crew
This commit is contained in:
@@ -275,7 +275,7 @@ def get_crews(crew_path: str = "crew.py", require: bool = False) -> list[Crew]:
|
|||||||
|
|
||||||
for search_path in search_paths:
|
for search_path in search_paths:
|
||||||
for root, _, files in os.walk(search_path):
|
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)
|
crew_os_path = os.path.join(root, crew_path)
|
||||||
try:
|
try:
|
||||||
spec = importlib.util.spec_from_file_location(
|
spec = importlib.util.spec_from_file_location(
|
||||||
|
|||||||
Reference in New Issue
Block a user