Skip to content

Instantly share code, notes, and snippets.

@fbudin69500
Forked from jcfr/slicer_raw_execute_cli.py
Last active December 12, 2015 07:59
Show Gist options
  • Save fbudin69500/4740992 to your computer and use it in GitHub Desktop.
Save fbudin69500/4740992 to your computer and use it in GitHub Desktop.
import os
from subprocess import Popen, PIPE
cli_path = "/home/fbudin/DTIPrep-build"
cli_name = "DTIPrep"
cli_filepath = os.path.join(cli_path, cli_name)
#cli_filepath = slicer.modules.addscalarvolumes.path
process = Popen([cli_filepath, "--xml"], stdout=PIPE)
output = process.communicate()[0]
print(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment