fix: move PROJECT_PATH from os.getenv() to ConfigProvider#666
fix: move PROJECT_PATH from os.getenv() to ConfigProvider#666arnavp27 wants to merge 1 commit intopotpie-ai:mainfrom
Conversation
Adds ConfigProvider.get_project_path() static method following the existing @staticmethod pattern, and replaces direct os.getenv() calls in agents_service.py and search_service.py with the new method. Closes potpie-ai#638
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
WalkthroughThe PR centralizes Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary
Fixes #638
get_project_path()static method toConfigProviderinconfig_provider.py, following the existing@staticmethodpatternos.getenv("PROJECT_PATH", ...)calls inagents_service.pyandsearch_service.pywithConfigProvider.get_project_path()import osandfrom pathlib import Pathfrom both service filessearch_service.pyhad the identical issue (same rawos.getenvcall) so it was fixed in the same PR.Summary by CodeRabbit