Add main entry point for run.py
@@ -318,6 +318,9 @@ def setup_parser():
return parser
+def main():
+ """This is the main entry point."""
+
parser = setup_parser()
args = parser.parse_args()
cwd = os.path.dirname(os.path.realpath(__file__))
@@ -360,3 +363,6 @@ if not args.co:
# Compare ISS simulation result
if args.steps == "all" or re.match("iss_cmp", args.steps):
iss_cmp(matched_list, args.iss, args.o, args.isa, args.verbose)
+
+if __name__== "__main__":
+ main()
