Re: [python-win32] __getattr__ Error

2024-03-18 Thread haraldarminmassa
My usage is: I have to bundle all the pys in one exe file. And do not want that exe-file to write into it's directory. So I do: makepy -o OLE_Excel16.py and within my program: import OLE_Excel16 as Excel olx = Excel.Application() On Mon, Mar 18, 2024 at 3:25 PM Alok Bhargava wrote: >

Re: [python-win32] __getattr__ Error

2024-03-18 Thread haraldarminmassa
Hi Alok, there should be a __gencache__ directory somewhere, which contains the generated files. But it is WAY easier to just use the -o-- Create output in a specified output file. If the path leading to the file does not exist, any missing directories will be

Re: [python-win32] __getattr__ Error

2024-03-18 Thread haraldarminmassa
Hi Jannis, a good way forward: create less-dynamic COM-bindings by using makepy.py (it is part of your win32com-client installation, but linked here for the dokumentation) https://github.com/SublimeText/Pywin32/blob/master/lib/x32/win32com/client/makepy.py With makepy py you can create a (very