Hi Harald,
I managed to make a file containing everything I needed. NB the command
is makepy.py not makepy. There was, however, an issue with genpy.py
asserting there had to be a self.file.encoding even though I couldn't
see where that was set. I temporarily commented that assert out. File
Grant,
for your problems with the assertion there is a patch...
-
---
in Version 213 of pywin32 within
win32com\client\genpy.py
on line 814, within def do_gen_file_header(self): there is the assertion:
Grant:
( I read your new source code before commenting ... NICE PROJECT ! insert
back patting here )
The constants you are using here are hard-coded into adodbapi, therefore
adodbapi.adTinyInt
has the same value as adTinyInt in your dbe_globals.py
and win32com.client.constants.adTinyInt
I
Grant Paton-Simpson wrote:
I managed to make a file containing everything I needed. NB the command
is makepy.py not makepy.
Let me give you a little hint. Go into your environment variables, edit
the PATHEXT variable, and add .py and .pyw to the extensions so it looks
something like this:
Look for the win32com.client.gencache module - it exposes a number of
functions (EnsureDispatch, EnsureModule etc) designed simply to avoid
the requirement to explicitly run makepy before using an object.
Cheers,
Mark
On 27/08/2009 9:51 PM, Grant Paton-Simpson wrote:
Hi Harald,
I managed