From 0f7c6aeaf9eda9a5062b78950a60ca72771388a7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 3 Mar 2019 11:41:10 +0200 Subject: [PATCH] export: Skip swp files --- pywal/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywal/export.py b/pywal/export.py index fb284bd..4139cb7 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -70,7 +70,7 @@ def every(colors, output_dir=CACHE_DIR): join = os.path.join # Minor optimization. for file in [*os.scandir(template_dir), *os.scandir(template_dir_user)]: - if file.name != ".DS_Store": + if file.name != ".DS_Store" and not file.name.endswith(".swp"): template(colors, file.path, join(output_dir, file.name)) logging.info("Exported all files.")