diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-02 16:58:42 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-02 16:58:42 +1000 |
| commit | f08e2aa38f879d85fad879f778aba090b2368e4b (patch) | |
| tree | f402179aab179ffb72d134d3a18f219b0c7ebf2c /pywal | |
| parent | 950ede3644e1b4f908e0d446744eaab7fd947ad0 (diff) | |
export: Cleanup
Diffstat (limited to 'pywal')
| -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.") |
