Use parens for dupe file suffix number

git-svn-id: http://comictagger.googlecode.com/svn/trunk@183 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville 2012-11-30 07:52:28 +00:00
parent ad19daceb3
commit a99f7d1795

View File

@ -79,7 +79,7 @@ def unique_file(file_name):
while 1:
if not os.path.lexists( file_name):
return file_name
file_name = file_name_parts[0] + '_' + str(counter) + file_name_parts[1]
file_name = file_name_parts[0] + ' (' + str(counter) + ')' + file_name_parts[1]
counter += 1