0.27.2_hotfix2
This commit is contained in:
1 parent
bcc9f20345
commit
3457d1f543
2 files changed
+4
-2
No files matched your search
@@ -170,7 +170,8 @@ def certbot_prefix(executable: str | None = None) -> list[str]:
|
||||
return [executable]
|
||||
managed_python = os.environ.get("RUSTPROXY_CERTBOT_PYTHON")
|
||||
if managed_python:
|
||||
return [managed_python, "-I", "-m", "certbot"]
|
||||
managed_certbot = str(Path(managed_python).with_name("certbot"))
|
||||
return [managed_python, "-I", managed_certbot]
|
||||
discovered = shutil.which("certbot")
|
||||
if discovered:
|
||||
return [discovered]
|
||||
|
||||
@@ -145,8 +145,9 @@ async fn managed_environment_valid(
|
||||
if !command_success(imports, Duration::from_secs(20), shutdown).await {
|
||||
return false;
|
||||
}
|
||||
let certbot = venv_bin(directory).join("certbot");
|
||||
let mut version = Command::new(&python);
|
||||
version.args(["-I", "-m", "certbot", "--version"]);
|
||||
version.arg("-I").arg(certbot).arg("--version");
|
||||
command_success(version, Duration::from_secs(20), shutdown).await
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user