Skip to content

Commit

Permalink
Revert "Console script return status code (https://github.com/rordenl…
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc authored May 23, 2024
1 parent aea081a commit 368624f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dcm2niix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def main(args=None, **run_kwargs):
Arguments:
args: defaults to `sys.argv[1:]`.
**run_kwargs: passed to `subprocess.run`.
Returns: `int` exit code from dcm2niix execution.
Returns: `subprocess.CompletedProcess` instance.
"""
if args is None:
import sys
args = sys.argv[1:]
from subprocess import run
return run([bin] + args, **run_kwargs).returncode
return run([bin] + args, **run_kwargs)

0 comments on commit 368624f

Please sign in to comment.