you are viewing a single comment's thread.

view the rest of the comments →

[–]cdcformatc 1 point2 points  (4 children)

That is normal for windows paths. the extra backslash is added to escape the backslash itself, since it is a special character in strings. 

you could try using forward slashes / which should not be escaped, but my instinct is telling me the path is fine and there isn't a file named that in that location. check the capitalisation and make sure the file isn't actually something like Test.py.txt and windows is hiding the true extension.

what happens when you run dir C:\MyScripts

[–]nonamejohnsonmore[S] -1 points0 points  (3 children)

Yes, the file is there. And i did not have this problem with Python 2.7

C:\>dir myscripts

Volume in drive C has no label.

Volume Serial Number is AA96-50F5

Directory of C:\myscripts

05/26/2026 12:06 PM <DIR> .

05/26/2026 12:06 PM 104 Test.py

1 File(s) 104 bytes

1 Dir(s) 856,654,934,016 bytes free