summaryrefslogtreecommitdiff
path: root/inkstitch.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-07-18 18:59:00 +0200
committerGitHub <noreply@github.com>2024-07-18 18:59:00 +0200
commitc089a5ed0c00b7c0b6ac1c82ba1c21ed9f50c68e (patch)
tree1a4bc98d9e92e77ad129c3d3f5e73b4073b069b3 /inkstitch.py
parenteadeadb9a6bbb11c7f7e5ff49e9f430ce0e68cfe (diff)
ignore warnings in releases (#3081)
Diffstat (limited to 'inkstitch.py')
-rw-r--r--inkstitch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/inkstitch.py b/inkstitch.py
index aa0d82b3..50f33d19 100644
--- a/inkstitch.py
+++ b/inkstitch.py
@@ -124,6 +124,10 @@ debug_logging.startup_info(logger, SCRIPTDIR, running_as_frozen, running_from_in
# we need to import only after possible modification of sys.path, we disable here flake8 E402
from lib import extensions # noqa: E402 # import all supported extensions of institch
+# TODO: if we run this earlier the warnings ignore filter for releases will not work properly
+if running_as_frozen and not debug_logging.frozen_debug_active():
+ debug_logging.disable_warnings()
+
parser = ArgumentParser()
parser.add_argument("--extension")
my_args, remaining_args = parser.parse_known_args()