Specifying file paths
Specifying file paths


2 crossposts
You're viewing a single thread.
All Comments
131 comments
I hate that I need to use escape characters when creating something for windows.
105 0 ReplyPython raw strings to the rescue!
31 2 ReplyPathlib is the answer.
41 0 ReplyNobody is stopping you from using forward slashes. Python will translate the path for the current platform.
19 1 ReplyPython doesn't have to. Windows supports both out of the box. Has been for many, many years
5 0 ReplyGood to know!
2 0 Reply
Try pathlib. All your problems solved.
17 0 Reply
131 comments
Scroll to top