[issue31413] Support importing anything in ._pth files.
Steve Dower
report at bugs.python.org
Mon Sep 11 16:52:05 EDT 2017
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 <report at bugs.python.org>
<https://bugs.python.org/issue31413>
_______________________________________
More information about the Python-bugs-list
mailing list