Load python from different plugin dlls

R.Wieser address at not.available
Thu Feb 13 01:21:39 EST 2020


Eko,

> 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?

Yes.

Normally a DLL can be loaded in as many processes (and threads thereof) as 
you like.

However, it is possible that the DLLs initialisation contains code to check 
if something it needs is available*, and if not directly exit.

*like if it can access certain I/O - if the first DLL instance "takes 
posession" the second DLL instance wil fail.  Than again, this can also 
happen when using two totally different plugin DLLs.

tl;dr:
Yes, but not likely.




More information about the Python-list mailing list