Re: [python-win32] makepy.py "Some COM library"

2023-05-30 Thread Steven Manross
ys happy to help. Steven From: Mark Hammond Sent: Tuesday, May 30, 2023 11:01 AM To: Steven Manross ; python-win32@python.org Subject: Re: [python-win32] makepy.py "Some COM library" Does something like `python -c "from win32com.client.gencache import EnsureDispatch; EnsureDis

Re: [python-win32] makepy.py "Some COM library"

2023-05-30 Thread Mark Hammond
Does something like `python -c "from win32com.client.gencache import EnsureDispatch; EnsureDispatch('ADODB.Connection.6.0');` work? That should generate directly into the expected output directory. Mark On 2023-05-30 1:44 p.m., Steven Manross wrote: Command I ran:

[python-win32] makepy.py "Some COM library"

2023-05-30 Thread Steven Manross
Command I ran: C:\Python311\Lib\site-packages\win32com\client>python makepy.py "ADODB.Connection.6.0" Output: Generating to C:\Users\someuser\AppData\Local\Temp\13\gen_py\3.11\B691E011-1797-432E-907A-4D8C69339129x0x6x1.py Building definitions from type library... Generating... Importing module