<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>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.<br><br></div>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!<br><br></div>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 this work?<br><br></div>Thanks,<br><br></div>Pierre<br></div>