Opening hyperspyui with multiple files from command line
thomasaarholt opened this issue · 3 comments
Sometimes code speaks clearer than words. I was expecting this to work, but this is all that happens:
hyperspyui file1.dm3 file2.dm3
INFO:hyperspy.io_plugins.bcf:The fast cython based bcf unpacking library were found
QLocalSocket::connectToServer: Connection refused
The same error happens when I already have hyperspyui open and try to open a file with the command hyperspyui file3.dm3
. Opening one file on its own with hyperspyui closed is fine.
With the Mac OS app shortcut I'm making, I'm currently passing the above with single quotes, i.e. hyperspyui 'file1.dm3' 'file2.dm3'
. This doesn't work either, but I haven't figured out how not to pass it with single quotes yet.
Just to make sure:
- With the UI closed:
hyperspyui file1.dm3
workshyperspyui file1.dm3 file2.dm3
fails ?
- With the UI open, both commands fail
Right. Having just restarted my computer, everything suddenly works. I'll see if I can spot the QLocalSocket error.
So yeah, we essentially have a working Mac "app". Will keep testing for now though.
Reopen if you spot this again. Until then, I'll write this of as cosmic rays :)