I'm not sure why this is happening so i don't know how to resolve it, if my question is unclear please ask and i will clarify. I am on a 32bit windows and running python2.7.
I have a list "commands"
commands = ['open', 'C:\\Users\\Me\\Videos\\manimmedia\\animations\\example_scenes\\1080p60\\SquareToCircle.mp4']
When i print commands[-1]
i get
'C:\Users\Me\Videos\manimmedia\animations\example_scenes\1080p60\SquareToCircle.mp4'
The "\\"
becomes single slash "\"
, but when i put it back in it becomes "\" again.
So when i run windows doesn't see that path when i run the code so it gives a "WindowsError: [Error 2] The system cannot find the file specified"
How do i replace double slash as single slash?
edit
When i include command as an argument, does it send the one with the single backslash or the one with the double slashes ? Basically is the string treated differently or are they both identical?