Skip to content
Snippets Groups Projects
Commit f86fe01c authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'master' into 'master'

Auto install links to scripts

See merge request fsl/fslpy!42
parents 294c324a a3d9749e
No related branches found
No related tags found
No related merge requests found
Pipeline #
if [ -z ${FSLDIR} ]; then exit; fi
if [ ! -d ${FSLDIR}/bin ]; then exit; fi
scripts="atlasquery atlasq imcp immv imglob"
for script in $scripts; do
if [ -f ${FSLDIR}/bin/${script} ]; then rm ${FSLDIR}/bin/${script}; fi
ln -s ${PREFIX}/bin/${script} ${FSLDIR}/bin/${script}
done
if [ -z ${FSLDIR} ]; then exit; fi
scripts="atlasquery atlasq imcp immv imglob"
for script in $scripts; do
if [ -f ${FSLDIR}/bin/${script} ]; then rm ${FSLDIR}/bin/${script}; fi
done
...@@ -737,6 +737,15 @@ def main(args=None): ...@@ -737,6 +737,15 @@ def main(args=None):
return 0 return 0
def atlasquery_emulation(args=None):
"""Entry point for ``atlasquery``. Runs as ``atlasq`` in ``ohi``
mode.
"""
if args is None:
args=sys.argv[1:]
return main(['ohi']+args)
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())
...@@ -127,7 +127,8 @@ setup( ...@@ -127,7 +127,8 @@ setup(
'immv = fsl.scripts.immv:main', 'immv = fsl.scripts.immv:main',
'imcp = fsl.scripts.imcp:main', 'imcp = fsl.scripts.imcp:main',
'imglob = fsl.scripts.imglob:main', 'imglob = fsl.scripts.imglob:main',
'atlasq = fsl.scripts.atlasq:main', 'atlasq = fsl.scripts.atlasq:main',
'atlasquery = fsl.scripts.atlasq:atlasquery_emulation',
] ]
} }
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment