commit | d1072ddcc9234e05324df790b2a363ff08542c90 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Thu Nov 14 20:27:07 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Nov 14 20:28:12 2013 -0500 |
tree | fcf2108fcbf97405c153078444cf5c365e757dbc | |
parent | 67fef70631891279de499473c4e528f1b8f92663 [diff] [blame] |
Further fixup to cf75a7c5d05b96df6c6cacde3fdc53e8e6cb200d
diff --git a/Lib/fontTools/ttx.py b/Lib/fontTools/ttx.py index d649c38..4621d6a 100644 --- a/Lib/fontTools/ttx.py +++ b/Lib/fontTools/ttx.py
@@ -90,9 +90,7 @@ if outputDir: dir = outputDir output = os.path.join(dir, file + extension) - m = numberAddedRE.split(file) - if len(m) > 1: - file = m[0] + file = numberAddedRE.split(file)[0] n = 1 while os.path.exists(output): output = os.path.join(dir, file + "#" + repr(n) + extension)