Don't append duplicate files on cmd line multiple times

If a file is specified multiple time on the command line, do not
append it multiple times.
This commit is contained in:
Mike Gerber
2014-08-28 17:33:59 +02:00
parent e6927cbc04
commit af0829baf5
+1
View File
@@ -123,6 +123,7 @@ class AppendFilesCommand(BaseCommand):
else:
logger.debug("Adding image file: %s" % rel_filename)
item = self.labeltool.addImageFile(rel_filename)
present_filenames.add(rel_filename)
if options['unlabeled']:
item.setUnlabeled(True)