On Tue, Apr 24, 2012 at 1:58 AM, Brendan Kidwell
<email address hidden> wrote:
> In Windows, _lookup() looks for the presence of '$launcher' and
> '$launcher.exe'. It should also look for these file extensions in
> addition to 'exe', which may be used to launch a command line tool: cmd,
> bat, vbs, py, pl, js, jar. (And others?)
Seems to me that it will be hard to get an extensive list. Maybe just
check for the name with any extension and assume it will be executable
?
> Sorry I can't submit a patch because I don't quite understand the logic
> of this function. (What is the meaning of the 'else' clause following
> the 'for' statement? Is this legal?)
On Tue, Apr 24, 2012 at 1:58 AM, Brendan Kidwell
<email address hidden> wrote:
> In Windows, _lookup() looks for the presence of '$launcher' and
> '$launcher.exe'. It should also look for these file extensions in
> addition to 'exe', which may be used to launch a command line tool: cmd,
> bat, vbs, py, pl, js, jar. (And others?)
Seems to me that it will be hard to get an extensive list. Maybe just
check for the name with any extension and assume it will be executable
?
> Sorry I can't submit a patch because I don't quite understand the logic
> of this function. (What is the meaning of the 'else' clause following
> the 'for' statement? Is this legal?)
Yes, the "else" is executed if the "for" finishes without a break. docs.python. org/reference/ compound_ stmts.html# the-for- statement
See http://
for details.