osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Load python from different plugin dlls


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