Vladimir Chebotarev <vladimir.chebota...@gmail.com> 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`, on the contrary, is the only one per 
distribution and managed by the distribution).

I could easily add `''` to `sys.path` manually if I had one script or even 
dozen of them, but as the solution that alternative is not acceptable. :(

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33698>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to