Further fixup to cf75a7c5d05b96df6c6cacde3fdc53e8e6cb200d
This commit is contained in:
parent
67fef70631
commit
d1072ddcc9
@ -90,9 +90,7 @@ def makeOutputFileName(input, outputDir, extension):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user