mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-09 07:28:46 +01:00
export: Skip swp files
This commit is contained in:
parent
e7a2bfd29f
commit
0f7c6aeaf9
@ -70,7 +70,7 @@ def every(colors, output_dir=CACHE_DIR):
|
|||||||
join = os.path.join # Minor optimization.
|
join = os.path.join # Minor optimization.
|
||||||
for file in [*os.scandir(template_dir),
|
for file in [*os.scandir(template_dir),
|
||||||
*os.scandir(template_dir_user)]:
|
*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))
|
template(colors, file.path, join(output_dir, file.name))
|
||||||
|
|
||||||
logging.info("Exported all files.")
|
logging.info("Exported all files.")
|
||||||
|
Loading…
Reference in New Issue
Block a user