From 2eb4c5a22ebacb28c47359cc162ef136b75c66be Mon Sep 17 00:00:00 2001 From: l3uddz Date: Wed, 7 Mar 2018 01:47:51 +0000 Subject: [PATCH] use sys.exit. gitignore update --- .gitignore | 5 +++++ misc/config.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2bb030c..2c40804 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,8 @@ __pycache__/ # Pyenv **/.python-version + +# PyInstaller +build/ +*.manifest +*.spec \ No newline at end of file diff --git a/misc/config.py b/misc/config.py index d732ea6..7a59244 100644 --- a/misc/config.py +++ b/misc/config.py @@ -96,6 +96,6 @@ def load_config(): # dump/load config if build_config(): print("Please edit the default configuration before running again!") - exit(0) + sys.exit(0) else: cfg = load_config()