The Python Oracle

Python Popen Cannot Find the File Specified

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Life in a Drop

--

Chapters
00:00 Python Popen Cannot Find The File Specified
00:53 Accepted Answer Score 4
01:02 Thank you

--

Full question
https://stackoverflow.com/questions/1931...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #subprocess #popen

#avk47



ACCEPTED ANSWER

Score 4


The \ symbol counts as an escape character in python, use r to turn that off:

pathToFile = r"R:\T2 Output\12345--01--Some File 1--ABCD.mp4"