Further fixup to cf75a7c5d05b96df6c6cacde3fdc53e8e6cb200d

This commit is contained in:
Behdad Esfahbod 2013-11-14 20:27:07 -05:00
parent 67fef70631
commit d1072ddcc9

View File

@ -90,9 +90,7 @@ def makeOutputFileName(input, outputDir, extension):
if outputDir: if outputDir:
dir = outputDir dir = outputDir
output = os.path.join(dir, file + extension) output = os.path.join(dir, file + extension)
m = numberAddedRE.split(file) file = numberAddedRE.split(file)[0]
if len(m) > 1:
file = m[0]
n = 1 n = 1
while os.path.exists(output): while os.path.exists(output):
output = os.path.join(dir, file + "#" + repr(n) + extension) output = os.path.join(dir, file + "#" + repr(n) + extension)