frontend: return instead of exit

This commit is contained in:
Grigori Goronzy 2015-11-23 23:48:58 +01:00
parent 7317f9e3a7
commit f452ca226e
2 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,8 @@
# SOFTWARE.
#
import sys
import stcgal.frontend
if __name__ == "__main__":
stcgal.frontend.cli()
sys.exit(stcgal.frontend.cli())

View File

@ -152,4 +152,4 @@ def cli():
# run programmer
gal = StcGal(opts)
sys.exit(gal.run())
return gal.run()