Exporting to SPM is not working

Good day to eveyone!
I was trying to export an EEG continous file from BS to SPM format, when I got this error message:


** Error: Line 252: export_data (line 252)
** out_fopen_spm (line 26)
** SPM must be in the Matlab path to use this feature.
**
** Call stack:
** >export_data.m at 252
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@export_data,GetAllFilenames(bstNodes)) at 1487
**


I check twice and SPM is installed and configured, I have used it a couple times before for segmenting MRI without any troubles.

Thanks in advances!

I fixed this export function so that it uses the new SPM initialization function:
https://github.com/brainstorm-tools/brainstorm3/commit/0c1838aed81bf646800b4c3d09232f8d2774256a

Please update Brainstorm and try again.

It seems to work now, thank you!