Git 差异 Python: Python 无法打开文件。从目录中删除所有'\'

Git Diff Python: Python can't open file. Removes all '\' from directory

当我尝试使用我的自定义 python 脚本 git 比较文件时,出现无法打开文件的错误,并显示目录中的所有“\”都被删除了。

.git配置:

[diff "zip"]
    textconv = python C:\Users\user\Documents\git-xlsm-project\xlsm-git-diff-test\git_diff_xlsm.py

当我尝试执行 git 差异时出现此错误:

c:\Python33\python.exe: can't open file 'C:UsersuserDocumentsgit-xlsm-projectxlsm-git-diff-testgit_diff_xlsm.py': [Errno 2] No such file or directory
fatal: unable to read files to diff

改用正斜杠,效果很好。 C:/Users/user/Documents/git-xlsm-project/xlsm-git-diff-test/git_diff_xlsm.py