Possible Duplicate:
How can I programmatically get the path of “Python.exe” used by ArcMap

I am trying to get some information from registry about ArcGIS. I am using ArcGIS Desktop 10.0 and For this the registry looks like:

registry key for arcgis

My questions are:

  1. What does it mean when the "Python10.0" subkey has a "True" value?
  2. When "Python10.0" subkey has a "False" value?
  3. Does the registry key values same for every version of ArcGIS?


I have edited How can I programmatically get the path of “Python.exe” used by ArcMap question. Thanks @blah238 and @whuber♦ to get me the wrong. Now, this is a close question. Please help me for previous one.

Closely related

At How can I programmatically get the path of "Python.exe" used by ArcMap I asked how to obtain the path to Python.exe programmatically within ArcMap. Of the several solutions offered, one of them suggested using the registry, prompting the present question.

  • 1
    This again? gis.stackexchange.com/questions/44411/… – blah238 Jan 21 '13 at 11:14
  • 1
    @blah238 I don't think these two are same because here I need some information about key's. If there is any constant way, that ArcGIS follows, then, it is easy to take decision. – Emi Jan 21 '13 at 11:19
  • 1
    I forgot to ask, but what exactly are you looking for? The path to python.exe again? Help us to understand what you are trying to accomplish and why. This will make your question more applicable and useful to other readers. – blah238 Jan 21 '13 at 11:58
  • My final destination is to get python path. Though now I already doing this by keeping python path in Path environment, but now I want to know about this registry key, if it can help me to get python path from registry – Emi Jan 21 '13 at 14:16
  • Then I don't see anything substantially different from the other question. Are you still looking to do this with C#? – blah238 Jan 21 '13 at 14:21

Just guessing here, but short answers:

  1. Python was installed with ArcGIS
  2. Python was not installed with ArcGIS
  3. No. Each major release of ArcGIS has shipped with a different version of Python (9.3 -> 2.5, 10.0 -> 2.6, 10.1 -> 2.7) Additionally the ESRI registry structure has continually evolved, making this type of logic painfully complex. I do not have any working examples, but maybe someone else does.
  • I also guessed first two things in this way. But want to sure about it. and for third question, my concern is not about python's version, my concern is about is there any stable way, that is followed by esri to write on registry – Emi Jan 21 '13 at 11:25
  • Wait, you want to write to the ESRI registry? Why? – blah238 Jan 21 '13 at 11:26
  • Sorry for the misunderstanding. I am not going to write anything in ESRI registry. I want to know does it always write it's python key in this way or not? – Emi Jan 21 '13 at 11:29
  • How far back in history do you want to go with this? ArcGIS Desktop has been around for over a decade. Do you want to support <=9.3 or just 10.0 and up? – blah238 Jan 21 '13 at 11:31
  • I want to support 10.0 and up – Emi Jan 21 '13 at 11:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.