@cm0002 to Programmer [email protected] • 9 hours agoSpecifying file pathslemmy.mlimagemessage-square59arrow-up1695arrow-down15cross-posted to: linuxmemes
arrow-up1690arrow-down1imageSpecifying file pathslemmy.ml@cm0002 to Programmer [email protected] • 9 hours agomessage-square59cross-posted to: linuxmemes
minus-squareunalivejoylinkfedilinkEnglish13•8 hours agoNobody is stopping you from using forward slashes. Python will translate the path for the current platform.
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.