Finding the Process Path

gene tani gene.tani at gmail.com
Mon Oct 3 14:39:13 CEST 2005


other ways to get at info:

if sys.hexversion > 0x010502F0:

sys.versioninfo, version, etc.

platform.architecture, processor etc.

distutils.sysconfig.get_makefile_filename(  )

Benji York wrote:
> Peck, Jon wrote:
> > I have Python code running in an application, and I would like to find
> > the full path of the process executable where it is running.
>
> Like this?
>
>  >>> import sys
>  >>> sys.executable
> '/usr/bin/python'
> --
> Benji York




More information about the Python-list mailing list