comtypes
comtypes copied to clipboard
`comtypes.gen.Friendly`'s `__file__`, `__repr__`, ... are not what they really are
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.