I see two diffrent behaviours about .pth and ._pth files:
the official Python install for Windows uses
.pthfiles inlib\site-packagesas documented in https://docs.python.org/3.12/library/site.html#module-site. It seems that adding multiple.pthfiles works and is used at the Python interpreter startup.the Python Embedded package for Windows seems to use
._pthfiles (and not.pth!) for the same thing:python38._pth, but in the same folder aspython.exe. In this case it seems that adding a second.pthor._pthfile in the same folder isn't used by the interpreter. Why? Is it documented that, for embedded Python, only one ._pth will be used?
More generally, what are the rules about .pth vs ._pth files? In which case should we use one or the other, what is the reason for the underscore _pth?
Note: the rules seem here complicated (.pth vs ._pth ; multiple files allowed vs. only one file used).
NB: Documentation about ._pth files