Open zegervdv opened 6 years ago
Ouch. That doesn't sound nice. I'm probably doing some questionable things here. Don't have a good idea for now, but the long-term solution will be to move to another API that is created by generateDS. There's some preliminary work here
For now I'm working around it by using a ProcessPoolExecutor
and running each import in a separate process.
When reading in 2 components in the same python instance, the second one is incomplete:
I need to start a new python interpreter and load everything again to be able to read the second file correctly.
I tried by deleting the references to
c1
and by unloading/reloading the module but only a fresh python interpreter will make it work again.Changing the order of the opening, instance creation or loading does not make a difference.