5

I have several software packages that install various installs of Python. For example:

C:\Python27\ArcGIS10.1
C:\Python27\ArcGIS10.2
C:\Python27|ArcGISx6410.1

Using sys.version does not work for my case since I need to know where the actual install is located, not the version.

How can I determine which install my Python interpreter is using?

Borealis
  • 7,514
  • 14
  • 61
  • 110
  • @TheSoundDefense I am not interested in determining the version, but rather the install (path) my interpreter is using. – Borealis Jul 22 '14 at 19:22

1 Answers1

4

What you want is sys.executable, which will give the path to actual interpreter executable.

kindall
  • 168,929
  • 32
  • 262
  • 294