How do I find the full path of the currently running Python interpreter?
+9
A:
sys.executable
contains full path of the currently running Python interpreter.
import sys
print sys.executable
Imran
2010-04-07 02:54:34
Thanks. That is like totally undocumented.
vy32
2010-04-07 17:33:24