cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agoSpecifying file pathslemmy.mlimagemessage-square133linkfedilinkarrow-up11.46Karrow-down115
arrow-up11.44Karrow-down1imageSpecifying file pathslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square133linkfedilink
minus-squarePennomi@lemmy.worlddeleted by creatorlinkfedilinkEnglisharrow-up30arrow-down2·2 years agoPython raw strings to the rescue!
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up18arrow-down1·2 years agoNobody is stopping you from using forward slashes. Python will translate the path for the current platform.
minus-squareLichtblitz@discuss.tchncs.delinkfedilinkarrow-up5·2 years agoPython doesn’t have to. Windows supports both out of the box. Has been for many, many years
Python raw strings to the rescue!
Pathlib is the answer.
Nobody is stopping you from using forward slashes. Python will translate the path for the current platform.
Python doesn’t have to. Windows supports both out of the box. Has been for many, many years
Good to know!