Merge pull request #195 from blahsd/master

Fixed issue with .DS_Store files
This commit is contained in:
Dylan Araps 2018-03-04 08:19:19 +11:00 committed by GitHub
commit b5e97e591d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,11 @@ def every(colors, output_dir=CACHE_DIR):
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):
if file.name != '.DS_Store':
template(colors, file.path, join(output_dir, file.name)) template(colors, file.path, join(output_dir, file.name))
for file in os.scandir(template_dir_user): 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))
print("export: Exported all files.") print("export: Exported all files.")