Skip to content

Commit

Permalink
return exit code instead of system.exit (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani authored Mar 22, 2023
1 parent bbb6dab commit 0aa6ee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/arcaflow/arcaflow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os, sys, subprocess, platform
from .engineargs import EngineArgs

def run(arg: EngineArgs):
def run(arg: EngineArgs) -> int:
args = []
if arg.config != None:
if os.path.isfile(arg.config):
Expand Down Expand Up @@ -32,8 +32,8 @@ def run(arg: EngineArgs):
binary_name="arcaflow"
if is_windows:
binary_name="arcaflow.exe"
sys.exit(subprocess.call([
return subprocess.call([
os.path.join(os.path.dirname(__file__), "bin",binary_name),
*args
]))
])

0 comments on commit 0aa6ee3

Please sign in to comment.