cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agoSpecifying file pathslemmy.mlimagemessage-square105fedilinkarrow-up11.28Karrow-down114
arrow-up11.27Karrow-down1imageSpecifying file pathslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square105fedilink
minus-squarePennomi@lemmy.worldlinkfedilinkEnglisharrow-up28arrow-down2·edit-24 months agodeleted by creator
minus-squareunalivejoy@lemm.eelinkfedilinkEnglisharrow-up16arrow-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
deleted by creator
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!