aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2019-03-03 11:41:10 +0200
committerDylan Araps <[email protected]>2019-03-03 11:41:10 +0200
commit0f7c6aeaf9eda9a5062b78950a60ca72771388a7 (patch)
treebe6101be24604ca88c2439aa685a85abb74b9aef
parentMerge pull request #372 from furrycatherder/fix-awesome (diff)
downloadpywal-0f7c6aeaf9eda9a5062b78950a60ca72771388a7.tar.xz
pywal-0f7c6aeaf9eda9a5062b78950a60ca72771388a7.zip
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.")