bahmanm@lemmy.ml to Linux@lemmy.mlEnglish · 3 months agoMy fellow software engineer, It's the year 2024...mastodon.socialexternal-linkmessage-square122fedilinkarrow-up1302arrow-down117file-textcross-posted to: [email protected]
arrow-up1285arrow-down1external-linkMy fellow software engineer, It's the year 2024...mastodon.socialbahmanm@lemmy.ml to Linux@lemmy.mlEnglish · 3 months agomessage-square122fedilinkfile-textcross-posted to: [email protected]
minus-squareMonkderDritte@feddit.delinkfedilinkarrow-up7·edit-23 months agoWhat language? Python has PyXDG. In shell it’s simply XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME"/.local/share}" XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME"/.config}" etc.
minus-squaresfera@beehaw.orglinkfedilinkarrow-up2·3 months agoThanks, I did not know about PyXDG. That was the type of thing I was asking about.
What language? Python has PyXDG.
In shell it’s simply
XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME"/.local/share}" XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME"/.config}" etc.
Thanks, I did not know about PyXDG. That was the type of thing I was asking about.