comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

`comtypes.gen.Friendly`'s `__file__`, `__repr__`, ... are not what they really are

Open junkmd opened this issue 3 years ago • 0 comments

Some dunder methods or attributes in a friendly named module under comtypes.gen return non-intuitive values.

>>> from comtypes.client import GetModule
>>> Scripting = GetModule("scrrun.dll")
>>> Scripting  # expected is `<module 'comtypes.gen.Scripting' from '...\\comtypes\\gen\\Scripting.py'>`, However ...
<module 'comtypes.gen._420B2830_E718_11CF_893D_00A0C9054228_0_1_0' from '...\\comtypes\\gen\\_420B2830_E718_11CF_893D_00A0C9054228_0_1_0.py'>

I wish fixing it.

junkmd avatar Jul 19 '22 13:07 junkmd