diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-01-02 13:46:31 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-01-02 13:46:31 +1100 |
| commit | 30ea15b0e2c3e7152b6b09e214e37973e43f5133 (patch) | |
| tree | 10e5e7befb2dbacb7ab47239655f448ec51ed273 /pywal/export.py | |
| parent | 55503fbc6030752de8d38122ad7ba7375a7731e9 (diff) | |
misc: changes.
Diffstat (limited to 'pywal/export.py')
| -rw-r--r-- | pywal/export.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pywal/export.py b/pywal/export.py index a53a2e3..8f252f9 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -53,11 +53,13 @@ def every(colors, output_dir=CACHE_DIR): template_dir_user = os.path.join(CONF_DIR, "templates") util.create_dir(template_dir_user) + join = os.path.join # Minor optimization. + for file in os.scandir(template_dir): - template(colors, file.path, os.path.join(output_dir, file.name)) + template(colors, file.path, join(output_dir, file.name)) for file in os.scandir(template_dir_user): - template(colors, file.path, os.path.join(output_dir, file.name)) + template(colors, file.path, join(output_dir, file.name)) print("export: Exported all files.") print("export: Exported all user files.") |
