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

Steve Dower report at bugs.python.org
Wed May 30 17:45:56 EDT 2018


Steve Dower <steve.dower at python.org> 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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33698>
_______________________________________


More information about the docs mailing list