summaryrefslogtreecommitdiff
path: root/pywal/export.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-04-02 16:58:42 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-04-02 16:58:42 +1000
commitf08e2aa38f879d85fad879f778aba090b2368e4b (patch)
treef402179aab179ffb72d134d3a18f219b0c7ebf2c /pywal/export.py
parent950ede3644e1b4f908e0d446744eaab7fd947ad0 (diff)
export: Cleanup
Diffstat (limited to 'pywal/export.py')
-rw-r--r--pywal/export.py10
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.")