Initialize icat during session initialization
Right now it is initialized at the first command line executed, which is kind of disapointing.
Instead, could it be possible to initialize icat during the bliss session initialization?
DEMO_SESSION [1]: flint()
WARNING: The `icat_servers` beacon configuration is missing and ICAT tango servers are not defined. Datasets will not be registered and e-logbook messages are lost.
WARNING 2022-01-07 18:02:31,304 flint: Flint starting...
ERROR 2022-01-07 18:02:33,589 flint: Flint can't start.
ERROR 2022-01-07 18:02:33,591 flint: You can enable the logs with the following line.
ERROR 2022-01-07 18:02:33,591 flint: SCAN_DISPLAY.flint_output_enabled = True
Plus i think the initialization is lazy and blocking.
If there is a problem in the configuration (wrong arg or param), there is no way to close the session with exit
, cause the exit is interrupted by the error from icat initialization.
This could also be fixed.
Edited by Valentin Valls