From 542671b4c5132f3d9b951d6cfdad610e5491c896 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Thu, 30 Nov 2017 01:02:13 -0500 Subject: [PATCH] make sure exit codes get propagated through peru.py and __main__.py --- peru.py | 2 +- peru/__main__.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/peru.py b/peru.py index f1dec84..ce9d36a 100755 --- a/peru.py +++ b/peru.py @@ -13,4 +13,4 @@ sys.path.insert(0, repo_root) import peru.main # noqa: E402 -peru.main.main() +sys.exit(peru.main.main()) diff --git a/peru/__main__.py b/peru/__main__.py index 0b7d7f2..ac7e395 100644 --- a/peru/__main__.py +++ b/peru/__main__.py @@ -1,3 +1,5 @@ -from . import main +import sys -main.main() +from .main import main + +sys.exit(main())