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: LuisCapriles
Subject: Re: [Gnumed-devel] write document failure on windows
Date: Sun, 15 May 2011 09:31:00 -0700 (PDT)

OK!  I had to install Python For Windows Extensions because Win32API was
missing...  A little maze!
>From here: http://www.python.org/download/windows/
To here: http://sourceforge.net/projects/pywin32/files/pywin32/Build216/

Take notice that I have Python25 in my PC because time ago I was toying with
Django... It seems that the installer, in my case
pywin32-216.win32-py2.5.exe, verifies if there is a valid Python
installation.  That would had failed if not for the former.

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.')
>>> 


Karsten Hilbert wrote:
> 
> On Sun, May 15, 2011 at 10:40:48AM +0200, Karsten Hilbert wrote:
> 
>>      import win32api
>>      print win32api.FindExecutable('AcroRd32.exe')
>> 
>> 
>> The above code should return an integer and a string, or
>> throw an exception.
> 
> Can you test this too:
> 
>       import win32api
>       print win32api.FindExecutable('does-not-exist.exe')
> 
> so we know *which* exception is thrown ?
> 

-- 
View this message in context: 
http://old.nabble.com/-Gnumed-devel--write-document-failure-on-windows-tp31601493p31623448.html
Sent from the GnuMed - Dev mailing list archive at Nabble.com.




reply via email to

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