diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-03-03 11:41:10 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-03-03 11:41:10 +0200 |
| commit | 0f7c6aeaf9eda9a5062b78950a60ca72771388a7 (patch) | |
| tree | be6101be24604ca88c2439aa685a85abb74b9aef /pywal | |
| parent | e7a2bfd29f3214b4eec274699336d4c208d1b38f (diff) | |
export: Skip swp files
Diffstat (limited to 'pywal')
| -rw-r--r-- | pywal/export.py | 2 |
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.") |
