Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
d = defaultdict(list)
for path in paths:
key = os.path.basename(path).lower()
d[key].append(path)
return filter(lambda x: len(x[1]) > 1, d.items())
# -------------------------------------------------------------------- #
if __name__ == '__main__':
try:
args = parse_args()
handle_duplicate_filenames(args.full_image_filenames)
Gallery.from_args(args).generate()
except KeyboardInterrupt:
sys.exit('Ctrl-C pressed, aborting.')