It returns the target file path to the console after executing shutil.copy2(), which is annoying.
shutil.copy2()
I would like to silent the output.
add _ = before shutil.copy2 will assign the message to _ to avoid it to be print to console. _ can be changed to any other names you like.
_ =
shutil.copy2
_
add
_ =beforeshutil.copy2will assign the message to_to avoid it to be print to console._can be changed to any other names you like.