Load python from different plugin dlls

Eko palypse ekopalypse at gmail.com
Wed Feb 12 07:41:04 EST 2020


Assuming there is an CppApp which allows extending its functionality by adding plugins. Now let's assume there are plugin developer which use cython to create such a plugins.

How can one check if there has been already a plugin loaded which itself loaded a python interpreter?

And if this is possible, what needs to be done that a second plugin can be used with the python interpreter loaded from the first plugin?

To summarize:
CppApp loads pluign1 (which loads python3.dll) ok
CppApp loads pluign2 (which needs also access to python3.dll but cannot load it itself as it has been already loaded by plugin1)

Is such a scenario actually possible?

Thank you
Eren


More information about the Python-list mailing list