[python-win32] Newbie question - how do I use the constants
generated by makepy?
R. Alan Monroe
amonroe at columbus.rr.com
Fri Aug 27 15:20:39 CEST 2004
I'm trying to use ADODB from Python, but it's not clear to me how I'm
supposed to access the constants for various enums...
Traceback (most recent call last):
File "adotest.py", line 10, in ?
conn.CursorLocation = adUseClient
NameError: name 'adUseClient' is not defined
Am I supposed to manually import the
EF53050B-882E-4776-B643-EDA472E8E3F2x0x2x7.py file that makepy
generated at the top of my own program, or is it supposed to get
automagically imported when I call win32com.client.Dispatch? If it's
automatic, how do I get at the constants?
Alan
More information about the Python-win32
mailing list