From 368624fdbbf0fbfa9880d9873aaf385eab18bb14 Mon Sep 17 00:00:00 2001 From: Chris Rorden Date: Thu, 23 May 2024 08:16:09 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"Console=20script=20return=20status=20?= =?UTF-8?q?code=20(https://github.com/rordenlab/dcm2n=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dcm2niix/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dcm2niix/__init__.py b/dcm2niix/__init__.py index 91b1cb1c..42b26c2d 100644 --- a/dcm2niix/__init__.py +++ b/dcm2niix/__init__.py @@ -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)