[Pythonmac-SIG] findertools.launch reports "no eligible process"
ronaldoussoren at mac.com
Fri Jun 8 15:33:44 CEST 2007
On Friday, June 08, 2007, at 02:57PM, "Kent Johnson" <kent37 at tds.net> wrote:
>> Anyway, simplest solution here is:
>> import subprocess
>> subprocess.call(['open', '/Users/drew/Documents'])
import os # ;-)
That works but is non-trivial to get entirely correct due to quoting. Using subprocess is much better because you don't have to worry about quoting for the shell. Os.popen and os.system should basically be deprecated, but that will probably not happen anytime soon because they are used a lot in existing code.
>Pythonmac-SIG maillist - Pythonmac-SIG at python.org
More information about the Pythonmac-SIG