Skip to content

Commit

Permalink
Included dcm2niix return status to Python console script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Hampshire committed Apr 18, 2024
1 parent e2ead4b commit 8179dec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dcm2niix/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import sys
from typing import TYPE_CHECKING

from . import main

main()
if TYPE_CHECKING:
from subprocess import CompletedProcess

completed_process: "CompletedProcess" = main()
sys.exit(completed_process.returncode)

0 comments on commit 8179dec

Please sign in to comment.