Skip to content

Commit

Permalink
internal utility.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Sep 18, 2024
1 parent b828fe7 commit 729ccfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}

0 comments on commit 729ccfd

Please sign in to comment.