[issue33944] Deprecate and remove pth files

Peter L report at bugs.python.org
Thu Feb 28 02:10:58 EST 2019


Peter L <pacqb5 at gmail.com> added the comment:

+1 for python -v listing .pth files found and loaded.

For debugging, I just add a:
    import sys; print('Loading mypth.pth')
to the start of the pth file.
A plain print doesn't work(?).
breakpoint() doesn't work(?).
It would be nice to be able to get the filename (__file__ is site.py)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________


More information about the Python-bugs-list mailing list