[PyQt] PyQt5 and temporary python interpreter in a C++ program
Pierre Barbier de Reuille
pierre at barbierdereuille.net
Mon May 18 18:19:23 BST 2015
I have a C++ application that can be scripted with Python. As the scripting
is very localized in time, I had originally chosen to initialize the
interpreter before each script, and finalize it after each script.
This worked very well until I tried to use PyQt5 in my scripts! If I do
that, it works the first time, but on the next initialization, all the
modules are close to empty. In particular, they don't have any classes!
As a temporary solution, I initialize the interpreter once at the start of
my application, and re-use it over and over. But this is not ideal! In
particular, that would allow for resources leaks, which I would like to
avoid. Is this a known issue with PyQt? Is there something I can do to make
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt