summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-03-03 11:41:10 +0200
committerDylan Araps <dylan.araps@gmail.com>2019-03-03 11:41:10 +0200
commit0f7c6aeaf9eda9a5062b78950a60ca72771388a7 (patch)
treebe6101be24604ca88c2439aa685a85abb74b9aef
parente7a2bfd29f3214b4eec274699336d4c208d1b38f (diff)
export: Skip swp files
-rw-r--r--pywal/export.py2
1 files changed, 1 insertions, 1 deletions
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.")