How to fetch current /Clone python environment in Pro .SDK

168
0
05-08-2020 05:29 PM
ArunEpuri
New Contributor II

Hi,

In pro I have multiple python environments and I want to fetch the current project active Python environment( either default or Clone, etc.,) and install my packag on current environment with my Add-in Click.

By referring below link I am able to get default environment but not other cloned environments

arcgis-pro-sdk-community-samples/RunPyScriptButton.cs at master · Esri/arcgis-pro-sdk-community-samp... 

Any sample code of class reference to fetch Current Python Environment path and show the path in MessageBox.

Please find the attachment for overview of my python environments.

Thanks,

Arun E

0 Kudos
0 Replies