[issue31413] Support importing anything in ._pth files.

2017-09-11 Thread Steve Dower
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 t

[issue31413] Support importing anything in ._pth files.

2017-09-10 Thread Decorater
Changes by Decorater : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue31413] Support importing anything in ._pth files.

2017-09-10 Thread Decorater
New submission from Decorater: E:\TinyURL\app\Release>tinyurl Fatal Python error: only 'import site' is supported in ._pth file Current thread 0x161c (most recent call first): The above Happens when I try to use the ._pth file to automatically call .main() However it prints that and then