More inventing math progress

This commit is contained in:
Grant Sanderson
2015-08-03 22:23:00 -07:00
parent 6af2e9c6c2
commit 9cf8e7b75e
9 changed files with 290 additions and 15 deletions

View File

@ -20,7 +20,10 @@ def tex_to_image(expression,
if os.path.exists(image_dir):
result = [
Image.open(os.path.join(image_dir, png_file)).convert('RGB')
for png_file in os.listdir(image_dir)
for png_file in sorted(
os.listdir(image_dir),
cmp_enumerated_files
)
]
else:
filestem = os.path.join(TEX_DIR, exp_hash)