[python-win32] Re: constants problem

Roger Upole rwupole at msn.com
Thu Jul 21 06:20:47 CEST 2005


For the constants to be available, you'll need to run makepy
on the machines your script will run on.
win32com.client.gencache.EnsureDispatch will create the
generated file for an object if it doesn't already exist.

       Roger


kimwaic888-pythonwin32 at yahoo.com wrote:

> Hi, list:
> 
> This is puzzling.  For the PythonWin32 based Word
> script I developed, everything works fine on my
> machine.  However, when I run the script on another
> machine, it would fail whenever it comes across any of
> the constants variables (such as, for example,
> constants.wdLine, constants.wdStory, or any of them). 
> I checked and rechecked and the machines are all
> running the same version of Python (2.3) and same
> versions of PythonWin32.
> 
> Anybody??
> 
> Thanks,
> 
> --
> 
> --
> John Henry


More information about the Python-win32 mailing list