diff options
| -rw-r--r-- | pywal/export.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pywal/export.py b/pywal/export.py index ed7a846..993e528 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -57,13 +57,9 @@ def every(colors, output_dir=CACHE_DIR): util.create_dir(template_dir_user) join = os.path.join # Minor optimization. - - for file in os.scandir(template_dir): - if file.name != '.DS_Store': - template(colors, file.path, join(output_dir, file.name)) - - for file in os.scandir(template_dir_user): - if file.name != '.DS_Store': + for file in [*os.scandir(template_dir), + *os.scandir(template_dir_user)]: + if file.name != ".DS_Store": template(colors, file.path, join(output_dir, file.name)) logging.info("Exported all files.") |
