From 60664cc1c1b2465b935924dc36b255161135374b Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 11 Jan 2022 23:11:57 +0100 Subject: releases: suppress warnings (#1534) --- inkstitch.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inkstitch.py') diff --git a/inkstitch.py b/inkstitch.py index 319b6691..65331cec 100644 --- a/inkstitch.py +++ b/inkstitch.py @@ -29,6 +29,11 @@ from lib import extensions from lib.i18n import _ from lib.utils import restore_stderr, save_stderr, version +# ignore warnings in releases +if getattr(sys, 'frozen', None): + import warnings + warnings.filterwarnings('ignore') + logger = logging.getLogger('shapely.geos') logger.setLevel(logging.DEBUG) shapely_errors = StringIO() -- cgit v1.2.3