From 1ef6422e8965f605663e15604377fd9252e40fa0 Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Tue, 21 Nov 2023 13:07:23 -0800 Subject: [PATCH] Fix for multiple python.exe detected when setting `rosettaPTF.arcpy_path` --- R/find_python.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/find_python.R b/R/find_python.R index f021fe1..46654b6 100644 --- a/R/find_python.R +++ b/R/find_python.R @@ -109,8 +109,8 @@ find_python <- function(envname = NULL, options(rosettaPTF.python_path = PYEXE_PATH) options(rosettaPTF.arcpy_path = arcpy_path) - subres - }, silent = TRUE) + subres[grep("envs/arcgispro-py3", subres, fixed = TRUE)] + }, silent = FALSE) # User can/should use regular reticulate methods for this