Finding the full path of an executable

Grant Edwards invalid at invalid
Fri Jan 16 21:44:33 CET 2009

On 2009-01-16, Michael Hoffman <9qobl2n02 at> wrote:
> Is there a portable way to find the full path of a filename that would 
> be called by os.execvp()?

Yes.  Use os.path.abspath() on the name before you call it with

Grant Edwards                   grante             Yow! !  The land of the
                                  at               rising SONY!!

More information about the Python-list mailing list