Skip to content

Commit 99405d6

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Fix the starting folder for finding ADK source
PiperOrigin-RevId: 808371099
1 parent a06bf27 commit 99405d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎contributing/samples/adk_agent_builder_assistant/utils/adk_source_utils.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from typing import Optional
2424

2525
# Set up logger for ADK source utils
26-
logger = logging.getLogger(__name__)
26+
logger = logging.getLogger("google_adk." + __name__)
2727

2828
# Global cache for ADK AgentConfig schema to avoid repeated file reads
2929
_schema_cache: Optional[Dict[str, Any]] = None
@@ -49,7 +49,7 @@ def find_adk_source_folder(start_path: Optional[str] = None) -> Optional[str]:
4949
adk_path = find_adk_source_folder("/path/to/project")
5050
"""
5151
if start_path is None:
52-
start_path = os.getcwd()
52+
start_path = os.path.dirname(__file__)
5353

5454
current_path = Path(start_path).resolve()
5555

0 commit comments

Comments
 (0)