aboutsummaryrefslogtreecommitdiffstats
path: root/typarichive.py
diff options
context:
space:
mode:
authorTeddy Wing2018-06-28 02:09:33 +0200
committerTeddy Wing2018-06-28 02:09:56 +0200
commitea1522eb029d4d7db76bd10a509dcc7b93190231 (patch)
tree030e89d0b65181bd8f1aa3c7faab5e2b6593bd76 /typarichive.py
parent51226a6faa4ef6bf5d722a3cf163f4c88a715ffb (diff)
downloadglyphs-typarichive-ea1522eb029d4d7db76bd10a509dcc7b93190231.tar.bz2
Clean up comments
* Remove obsolete comments * Clean up spacing
Diffstat (limited to 'typarichive.py')
-rw-r--r--typarichive.py11
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