Commit f86fe01c authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'master' into 'master'

Auto install links to scripts

See merge request fsl/fslpy!42
parents 294c324a a3d9749e
Pipeline #1586 canceled with stages
in 11 minutes and 56 seconds
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):
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__':
sys.exit(main())
......@@ -127,7 +127,8 @@ setup(
'immv = fsl.scripts.immv:main',
'imcp = fsl.scripts.imcp:main',
'imglob = fsl.scripts.imglob:main',
'atlasq = fsl.scripts.atlasq:main',
'atlasq = fsl.scripts.atlasq:main',
'atlasquery = fsl.scripts.atlasq:atlasquery_emulation',
]
}
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment