Make emoji_dump delete old ttx files on start.

This commit is contained in:
James Porter 2016-06-03 02:38:09 -04:00 committed by Tim Abbott
parent f5f2d72178
commit 2a8e8129d1
1 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
from __future__ import print_function
import os
import glob
import shutil
import subprocess
import json
@ -66,6 +67,12 @@ def main():
# https://android.googlesource.com/platform/external/noto-fonts/+/marshmallow-release/other/NotoColorEmoji.ttf
# note that you have to run it though base64 -D before being able
# to use it, since it downloads from that page base64 encoded
# this is so we don't accidently leave ttx files from previous
# runs of this script lying around
for fname in glob.glob("*ttx*"):
os.remove(fname)
subprocess.call('ttx -v -z extfile NotoColorEmoji.ttf', shell=True)
try: