SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Fix: Correct path to keys.cfg
Kilian Lieret76f73041d2bc
diff --git a/sweagent/utils/config.py b/sweagent/utils/config.pyindex 095bca1a..05df9904 100644--- a/sweagent/utils/config.py+++ b/sweagent/utils/config.py@@ -18,7 +18,7 @@ class Config:keys_cfg_path = PACKAGE_DIR / "keys.cfg"if keys_cfg_path.exists():try:- self._keys_cfg = config_file.Config(PACKAGE_DIR / "keys.cfg")+ self._keys_cfg = config_file.Config(PACKAGE_DIR.parent / "keys.cfg")except Exception as e:raise RuntimeError(f"Error loading keys.cfg. Please check the file.") from eelse: