Prevent error when JVM is already running.#8
Conversation
|
I do not agree that this check should be the responsibility of What is the reasoning for not checking for the |
|
I understand your point. But running twice the same line without modifying anything else and get an error only the second time is definitively not the correct pattern in my opinion. I know the scyjava/pyimage/jnius init mechanism is complex but we should be able to run (or the equivalent scyjava code): import imagej
imagej.init()twice without running into an error. Do you guys (@ctrueden and @hanslovsky) think this issue could be addressed elsewhere? Or do you think that issue should only be handled at the user level? |
I agree but that is a general problem with (stateful) singletons: Running the same thing multiple times will produce different result depending on the global state.
|
|
For the record: imagej/pyimagej#30 |
|
Thanks @hadim |
Minor fix on string scijava#17 (proposal)
See imagej/pyimagej#29 for details.