export: Skip swp files

This commit is contained in:
Dylan Araps 2019-03-03 11:41:10 +02:00
parent e7a2bfd29f
commit 0f7c6aeaf9

View File

@ -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.")