valosekj / fsleyes_preset

Run FSLeyes and automatically set display options
GNU General Public License v3.0
0 stars 0 forks source link

Improve decision logic for selection of `fsleyes` version #22

Open valosekj opened 2 years ago

valosekj commented 2 years ago

Decision logic for selection of fsleyes version works, but could be more robust.

https://github.com/valosekj/fsleyes_preset/blob/ea8198fc5965d24c4c119445f3a69482ef7cd5b6/fsleyes_preset.py#L17-L21

For instance, the script could automatically check if which fsleyes works. If so, returned path could be used for fsleyes command.