Closed servoz closed 1 year ago
I will merge the PR but here the function is duplicated several times, which will certainly end up with "different" behaviors when we modify/fix one of them. We need to move it in a centralized place soon.
Thanks @denisri ! I can put the function where you want in soma but I do not know where and I do not want to impose a place! Just tell me where you want me to put it.
I've put it in soma.utils.env
. I'm moving the calls to it in capsul.
it's moved.
Thanks @denisri !
As discussed in private message, we should put the parse_env_lines() method in soma.utils instead, but in the meantime we can already make the modification in capsul (the method is therefore repeated for each module of capsul.in_context). I don't have freesurfer installed on my computer so I didn't make the modification for the module capsul.in_context.freesurfer, because I can't test the result.