Re: Finding the full path of an executable

2009-01-17 Thread Gabriel Genellina
En Fri, 16 Jan 2009 23:08:27 -0200, escribiste en el grupo gmane.comp.python.general Unknown wrote: On 2009-01-16, Michael Hoffman <9qobl2...@sneakemail.com> wrote: Is there a portable way to find the full path of a filename that would be called by os.execvp()? The correct answer would be "/

Re: Finding the full path of an executable

2009-01-16 Thread Grant Edwards
On 2009-01-17, Michael Hoffman <9qobl2...@sneakemail.com> wrote: > Unknown wrote: >> On 2009-01-16, Michael Hoffman <9qobl2...@sneakemail.com> 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 n

Re: Finding the full path of an executable

2009-01-16 Thread Michael Hoffman
Unknown wrote: On 2009-01-16, Michael Hoffman <9qobl2...@sneakemail.com> 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 os.execvp() That doesn't work: Python 2.5.2 (r252:

Re: Finding the full path of an executable

2009-01-16 Thread Grant Edwards
On 2009-01-16, Michael Hoffman <9qobl2...@sneakemail.com> 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 os.execvp() -- Grant Edwards grante

Finding the full path of an executable

2009-01-16 Thread Michael Hoffman
Is there a portable way to find the full path of a filename that would be called by os.execvp()? Thanks, Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list