I'm on a mac, and I have a collection of files where some file names end in \r
carriage-return (don't ask why).
I can rename those files and drop the trailing \r
, but I don't want to - the files are in a Font package and on principle I don't want to mess with it.
I've tried these things; all failed.
f = open("Icon\r") file not found
f = open(r"Icon\r") file not found
f = open(U"Icon\r") file not found
f = open("Icon") as expected, file not found
Is there any way to make Python accept \r
within a filename?