I have
path = "/Users/xx/datasets/yyy/DefinedTS\Training\00000"
I just want to replace the '\' escape character with the '/'. I have tried:
path.replace("/","\")
But I got the error : EOL while scanning string literal
I also tried regex, writing my own function, trying to convert to ascii and replacing, but everything seems to reflect the same problem.
EDIT: I meant I tried
path.replace("\","/")
Thanks to UncleZeiv for pointing it out.