Skip to content

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]

Enh: Allow to disable python-standalone for batch (#1115)

Kilian Lieret64d3d8c21ad6
diff --git a/sweagent/run/batch_instances.py b/sweagent/run/batch_instances.py
index ce8d31e4..1aa4a5c1 100644
--- a/sweagent/run/batch_instances.py
+++ b/sweagent/run/batch_instances.py
@@ -133,7 +133,8 @@ class SimpleBatchInstance(BaseModel):
deployment.image = self.image_name # type: ignore
- if isinstance(deployment, DockerDeploymentConfig):
+ if isinstance(deployment, DockerDeploymentConfig) and deployment.python_standalone_dir is None:
+ # Note: you can disable this by setting python_standalone_dir to ""
deployment.python_standalone_dir = "/root" # type: ignore
return BatchInstance(