def main(path1, path2):
#код
main(r'C:\Directory\Path\test.txt', r'C:\Directory2\Path\')
main('C:\Directory\Path\test.txt', 'C:\Directory2\Path\')
main('C:\\Directory\\Path\\test.txt', 'C:\\Directory2\\Path\\')
main('C:/Directory/Path/test.txt', 'C:/Directory2/Path/')