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

Vladimir Chebotarev report at bugs.python.org
Thu May 31 04:45:08 EDT 2018

Vladimir Chebotarev <vladimir.chebotarev at 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 <report at bugs.python.org>

More information about the docs mailing list