Select to view content in your preferred language

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

05-08-2020 05:29 PM
New Contributor II


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.


Arun E

0 Kudos
0 Replies