[issue34841] Script’s directory not in sys.path with embeddable Windows distribution

Sebastian Koslowski report at bugs.python.org
Wed Feb 27 03:27:51 EST 2019


Sebastian Koslowski <sebastian.koslowski at gmail.com> added the comment:

I ran into the same problem.

Seems like adding an empty sys.path entry through the _pth file is not supported at the moment:
https://github.com/python/cpython/blob/53b9e1a1c1d86187ad6fbee492b697ef8be74205/PC/getpathp.c#L589

For now, I have enabled 'import site' and edited that (inside the zip file) to include 'sys.path.insert(0, "")'

----------
nosy: +skoslowski

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


More information about the Python-bugs-list mailing list