You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Note that win32 is in site-packages and lib is inside of win32.
This package ships multiple modules, and uses a pth file to add those search paths:
# .pth file for the PyWin32 extensions
win32
win32\lib
Pythonwin
The module win32api is located in the win32 directory. However, due to the ordering of the paths (site-packages comes first), we end up in a scenario where only this works:
importwin32.win32api# or equivalently to the original examplefromwin32importwin32api
Because we've already "carved" out site-packages, and any module below it must be fully specified, even though a later search path allows the module to have a second name.
This is a concrete example of similar issues we have with extraPaths on user code, but due to the use of pth files here to add search paths, this breaks out into library code.