gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] write document failure on windows


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] write document failure on windows
Date: Sun, 15 May 2011 18:47:51 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, May 15, 2011 at 09:31:00AM -0700, LuisCapriles wrote:

> And then I got this...
> >>> import win32api
> >>> print win32api.FindExecutable('does-not-exist.exe')
> 
> Traceback (most recent call last):
>   File "<pyshell#1>", line 1, in <module>
>     print win32api.FindExecutable('does-not-exist.exe')
> error: (2, 'FindExecutable', 'El sistema no puede hallar el archivo
> especificado.')

Thanks. This tells us that the exception is called "error".
Most likely that is win32api.error :-)

> >>    import win32api
> >>    print win32api.FindExecutable('AcroRd32.exe')
> >> 
> >> The above code should return an integer and a string, or
> >> throw an exception.

How about this test ?

Thanks,
Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]