diff options
Diffstat (limited to 'typarichive.py')
| -rw-r--r-- | typarichive.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/typarichive.py b/typarichive.py index 79ba06b..8ea4023 100644 --- a/typarichive.py +++ b/typarichive.py @@ -9,17 +9,16 @@ from os import path import re import shutil + def new_font_name(filename): time_string = datetime.now().strftime('%Y%m%d%H%M') return re.sub(r'\d{12}', time_string, filename) + font = Glyphs.font filepath = font.filepath -# Glyphs.font.close() - - font_directory = path.dirname(filepath) archive_directory = path.join(font_directory, '_archive') new_font_path = path.join( @@ -35,9 +34,3 @@ font.close() Glyphs.open(new_font_path) Glyphs.font.familyName = new_font_name(Glyphs.font.familyName) - -# Close font -# Copy font file to new file -# Move old file to archive -# Open new file -# Rename font name with current timestamp |
