diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-11-08 15:11:57 +0000 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-11-08 15:11:57 +0000 |
commit | 00a23485a0dcd1d847f1dc1f0fd833561d54d3ee (patch) | |
tree | 140de6cbe298a45b1433ab64f72ed81f01846065 | |
parent | da070f46c09beb91ff85ada0e9aaad558a26dd58 (diff) | |
download | fullSWOF-utils-00a23485a0dcd1d847f1dc1f0fd833561d54d3ee.tar.gz |
use sys module to supply exit function.
-rwxr-xr-x | makeBoundary | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/makeBoundary b/makeBoundary index ca0478f..8b6b7e5 100755 --- a/makeBoundary +++ b/makeBoundary @@ -6,6 +6,7 @@ import bisect import ast import math import argparse +import sys #TODO: use YAML/ruamel.yaml for configuration file. def read_definition(filename): @@ -294,7 +295,7 @@ if total_flow[-1] > target_flow: ind_p = bisect.bisect(total_flow, target_flow) else: print('Error: imposed discharge is higher than capacity') - quit() + sys.exit() print('index of part-filled panel:', ind_p) |