diff options
Diffstat (limited to '__main__.py')
-rw-r--r-- | __main__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/__main__.py b/__main__.py index edf3888..627f724 100644 --- a/__main__.py +++ b/__main__.py @@ -1,4 +1,5 @@ """ __main__.py - Tästä suoritus alkaa """ +import sys from argparse import ArgumentParser from app import App @@ -35,4 +36,7 @@ parser.add_argument( args = parser.parse_args() app = App(args) -app.run() +is_win = app.run() +del app + +sys.exit(not is_win) # Exit koodeissa 0 on onnistunut suoritus |