def METHOD_NAME(self):
    """Define FreeSurfer-specific environment variable in generated module file."""
    txt = super(EB_FreeSurfer, self).METHOD_NAME()
    freesurfer_vars = {
        'FMRI_ANALYSIS_DIR': os.path.join(self.installdir, 'fsfast'),
        'FS_OVERRIDE': '0',
        'FSF_OUTPUT_FORMAT': 'nii.gz',
        'FSFAST_HOME': os.path.join(self.installdir, 'fsfast'),
        'FREESURFER': self.installdir,
        'FREESURFER_HOME': self.installdir,
        'FUNCTIONALS_DIR': os.path.join(self.installdir, 'sessions'),
        'MNI_DIR': os.path.join(self.installdir, 'mni'),
        'MNI_DATAPATH': os.path.join(self.installdir, 'mni', 'data'),
        'MINC_BIN_DIR': os.path.join(self.installdir, 'mni', 'bin'),
        'MINC_LIB_DIR': os.path.join(self.installdir, 'mni', 'lib'),
        'MNI_PERL5LIB': os.path.join(self.installdir, 'mni', 'lib', 'perl5', '5.8.5'),
        'PERL5LIB': os.path.join(self.installdir, 'mni', 'lib', 'perl5', '5.8.5'),
        'OS': 'linux',
        'SUBJECTS_DIR': os.path.join(self.installdir, 'subjects'),
    }
    for key, value in sorted(freesurfer_vars.items()):
        txt += self.module_generator.set_environment(key, freesurfer_vars[key])
    return txt