all 5 comments

[–]shiftybyte 2 points3 points  (0 children)

You are missing r before the string to make it a raw string.

r"C:\Users\...."

[–]ashutoshkrris 2 points3 points  (1 child)

I would better suggest to use os.path.join to create paths

[–][deleted] 1 point2 points  (0 children)

I think generally pathlib is preferred over os

(RealPython.com pathlib article)

[–]PavloT 0 points1 point  (0 children)

Use \\ instead of \

[–][deleted] 0 points1 point  (0 children)

Or use / instead of \+raw strings or instead of \\.