[issue42260] [C API] Add PyInterpreterState_SetConfig(): reconfigure an interpreter

STINNER Victor report at bugs.python.org
Wed Nov 11 12:07:22 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> I would like to request that this ability to dynamically load Python DLLs remains even with any new initialization mechanism.

I don't plan to remove any feature :-)

> As another note, the main issues we run into are configuring the Python path to properly find packages and DLLs.

Do you mean sys.path? If yes, that's one of the goal of this issue. Allow you to write your own Python code to configure sys.path, rather than having to write C code, before the first (external) import.

How do you configure sys.path currently? Do you parse a configuration file? Do you use a registry key on Windows?

----------

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


More information about the Python-bugs-list mailing list