From 00a23485a0dcd1d847f1dc1f0fd833561d54d3ee Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Fri, 8 Nov 2019 15:11:57 +0000 Subject: use sys module to supply exit function. --- makeBoundary | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makeBoundary') 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) -- cgit