lassoan / SlicerElastix

This extension makes available Elastix medical image registration toolkit (http://elastix.isi.uu.nl/) available in Slicer.
MIT License
49 stars 29 forks source link

STYLE: Update python scripts to use print function for python 3.x #15

Closed jcfr closed 5 years ago

jcfr commented 5 years ago

This commit was crafted following these steps:

  Slicer_DIR=/path/to/Slicer-SuperBuild/Slicer-build
  ${Slicer_DIR}/../python-install/bin/PythonSlicer -m pip install future
  for f in `find ./ -name "*.py"`; do \
    ${Slicer_DIR}/../python-install/bin/PythonSlicer \
      --launch futurize -f libfuturize.fixes.fix_print_with_import --nobackups --write $f; \
  done