AnsweredAssumed Answered

Programmatically access user's Esri Python path

Question asked by david.lamartina_NCS on Oct 7, 2020
Latest reply on Oct 8, 2020 by david.lamartina_NCS

I'm creating a CoreHost app that needs to be able to call ArcPy scripts. To do this, we need (from what I understand) to know the local machine's python path - specifically the path of the python .exe installed with Arc Pro.

 

I've accomplished this on my development machine by just hardcoding the path to the ArcGIS directory in Program Files - but how can we get the appropriate executable without knowing where and how the user has installed Arc Pro?

Outcomes