From: Luke Kenneth Casson Leighton Date: Wed, 5 Aug 2020 13:49:03 +0000 (+0000) Subject: add __main__ runner X-Git-Tag: partial-core-ls180-gdsii~97 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c0a6520d41b23964b84fdd4d7b0ddac0314a89f;p=soclayout.git add __main__ runner --- diff --git a/experiments9/doDesign.py b/experiments9/doDesign.py index f2029df..06ea57a 100644 --- a/experiments9/doDesign.py +++ b/experiments9/doDesign.py @@ -642,3 +642,13 @@ def scriptMain ( **kw ): sys.stderr.flush() return rvalue + + +if __name__ == '__main__': + kwargs = {} + success = scriptMain(**kwargs) + shellSuccess = 0 + if not success: + shellSuccess = 1 + + sys.exit(shellSuccess)