Skip to content

Commit

Permalink
better python wrapper I/O
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Jan 3, 2024
1 parent fe2f260 commit 72adf8a
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 @@ -19,9 +19,9 @@
bin = str(bin_path)


def main(args=None):
def main(args=None, **run_kwargs):
if args is None:
import sys
args = sys.argv[1:]
from subprocess import run
run([bin] + args)
return run([bin] + args, **run_kwargs)

0 comments on commit 72adf8a

Please sign in to comment.