export: Cleanup

This commit is contained in:
Dylan Araps 2018-04-02 16:58:42 +10:00
parent 950ede3644
commit f08e2aa38f

View File

@ -57,13 +57,9 @@ def every(colors, output_dir=CACHE_DIR):
util.create_dir(template_dir_user) util.create_dir(template_dir_user)
join = os.path.join # Minor optimization. join = os.path.join # Minor optimization.
for file in [*os.scandir(template_dir),
for file in os.scandir(template_dir): *os.scandir(template_dir_user)]:
if file.name != '.DS_Store': 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':
template(colors, file.path, join(output_dir, file.name)) template(colors, file.path, join(output_dir, file.name))
logging.info("Exported all files.") logging.info("Exported all files.")