From 729ccfd4e2a903baeeebdfc107b22ca434620ba5 Mon Sep 17 00:00:00 2001 From: Tomasz Kalinowski Date: Wed, 18 Sep 2024 15:16:21 -0400 Subject: [PATCH] internal utility. --- R/config.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/config.R b/R/config.R index 48158d33..bdb0c6e0 100644 --- a/R/config.R +++ b/R/config.R @@ -1256,3 +1256,8 @@ is_windows_app_store_python <- function(python) { } +find_all_pythons <- function(root = "/") { + cmd <- sprintf("find %s -type f -regex '.*/python[0-9.]*$' -executable 2>/dev/null", + root) + as.character(suppressWarnings(system(cmd, intern = TRUE))) +}