Zim

Comment 2 for bug 987572

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 987572] [NEW] Windows: Application class says plugin executable doesn't exist

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.
See http://docs.python.org/reference/compound_stmts.html#the-for-statement
for details.