BRAINSFit python environment

Hi all,

I am trying to perform registration of two MRI modalities of the same subject using BRAINSfit in a non-slicer python environment. I try to use the method described in this link https://www.slicer.org/w/index.php/Documentation/4.1/Modules/BRAINSFit. However, when I access the folder of ‘Slicer-5.6.2-linux-amd64/lib/Slicer-5.6/cli-modules’ and try to run ‘BRAINSFit’, it has the error of

‘BRAINSFit: command not found’
Does anyone know how to run the BRAINSFit properly in terminal?

Thanks!

Best,
Zoey

Update: the problem solved by adding whatever paths that are missing using ‘export’ command.