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

2020-02-04 Thread Steve Dower
Change by Steve Dower : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

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

2018-09-29 Thread Simon Sapin
Change by Simon Sapin : -- nosy: +ssapin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

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

2018-05-31 Thread Paul Moore
Paul Moore added the comment: You could add the line import sys; sys.path.insert(0, '') to a .pth file. The documentation you pointed out states that lines starting with "import" are executed... -- ___ Python tracker

[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 by users (`._pth`

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

2018-05-30 Thread Steve Dower
Steve Dower added the comment: If your ._pth includes `import site`, then including a blank line in a `anything.pth` file should add the entry. Alternatively, if you can add "import sys; sys.path.insert(0, '')" to the start of your code that depends on it you should be fine. -- ___

[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 __