[issue29326] Blank lines in ._pth file are not ignored

2019-05-28 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: +13537 pull_request: https://github.com/python/cpython/pull/7243 ___ Python tracker <https://bugs.python.org/issue29

[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2018-05-31 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Unfortunately this is not true: "Blank lines and lines beginning with # are skipped." (https://docs.python.org/3/library/site.html#index-1) I'm not sure we should change this behavior as it would make huge impact on usage of `pth` files b

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: -6869 ___ Python tracker <https://bugs.python.org/issue29326> ___ ___ Python-bugs-list mailing list Unsub

[issue33698] `._pth` does not allow to populate `sys.path` with empty entry

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- title: `._pth` does not allow to populate `sys.path` empty entry -> `._pth` does not allow to populate `sys.path` with empty entry ___ Python tracker <https://bugs.python.org/issu

[issue33698] `._pth` does not allow to populate `sys.path` empty entry

2018-05-30 Thread Vladimir Chebotarev
New submission from Vladimir Chebotarev : Moving from bpo-29326 Hi Steve. I'll try to explain what is my motivation. I need a reliable way to run Python (not matter embedded or not) in isolated mode, but still having current directory in `sys.path` (empty entry). Ironically I

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Hi Steve. I'll try to explain what is my motivation. I need a reliable way to run Python (not matter embedded or not) in isolated mode, but still having current directory in `sys.path` (empty entry). Ironically I could misuse normal mode to sim

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: +6869 ___ Python tracker <https://bugs.python.org/issue29326> ___ ___ Python-bugs-list mailing list Unsub

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: I shall attach pull request soon. -- ___ Python tracker <https://bugs.python.org/issue29326> ___ ___ Python-bugs-list m

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Hi. I guess this issue has to be reopen because Alexey erroneously broke adding empty paths to `sys.path` along with his patch. Official embeddable Pythons do contain a blank line in its ._pth, and this allowed users to import modules from script