nion-software / nionswift-instrumentation-kit

Base classes for Nion Swift STEM microscope instrumentation
GNU General Public License v3.0
1 stars 12 forks source link

Make console startup lines self-sufficient. #192

Closed Brow71189 closed 2 months ago

Brow71189 commented 2 months ago

I think this is good practice in general, but is a required change for https://github.com/nion-software/nionswift/pull/1082, because that does not guarantee an order for the console startup code lines anymore. So if the startup code registered here gets executed before the default one from ConsoleDialog.py, the code here will fail because of the missing Registry import. This change makes the startup code registered here independent from other code that migh or might not run first.