From f13e0a4c761633d8b47886c80ad6fa014aa17736 Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Thu, 7 Jul 2022 16:18:20 +0200 Subject: [PATCH] setup: only take svg files as input to build_icons command (#67139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ยท Some text editors such as vim perform a local management of their swap files. We prevent the command from taking such swap files as input while converting svg files to png. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 8b771b7..f6fb68b 100644 --- a/setup.py +++ b/setup.py @@ -160,6 +160,8 @@ class build_icons(Command): for filename in filenames: basename = os.path.splitext(filename)[0] variants = variants_applications + if not filename.endswith('.svg'): + continue if filename.startswith('action-'): variants = variants_actions for variant in variants: