mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-23 22:38:36 +01:00
export: Cleanup
This commit is contained in:
parent
950ede3644
commit
f08e2aa38f
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user