> -----Original Message----- > From: [email protected] > [mailto:[email protected]] > On Behalf Of Kurt Munson > Sent: 17 July 2012 17:08 > To: [email protected] > Subject: Re: [python-win32] new Pywin32 errors stating 'object has no > attribute' - and the code worked previously > > Graham, > > Thanks for the suggestion - deleting the \win32com\gen_py .py and .pyc files > solved the problem! > > It appears that my dispatch (whether static or dynamic) was using old > generated py instead of regenerating. Why would this be? > > Either way, deleting the folder under \win32com\gen_py solved this > problem. Thanks again for the help. > [Graham Bloice said]
I don't know of a way to force regeneration, maybe the gencache module can do that, or possibly ComMakePy. _______________________________________________ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
