Steve Dower added the comment: This is by design. You should not be using the ._pth file for anything other than initializing sys.path.
If you want to run code at startup, consider using sitecustomize.py or a regular .pth file, all of which will be imported when you include "import site" in the ._pth file. ---------- resolution: -> not a bug stage: -> resolved status: open -> closed type: crash -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31413> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com