3 ms·
Further: programs should use well-defined libraries to manage config and data file location. As easy as it is to roll your own, a library can and should handle
by jmbwell 3y ago
Further: programs should use well-defined libraries to manage config and data file location. As easy as it is to roll your own, a library can and should handle cases you don’t need to worry about.
Python has platformdirs for this. It handles XDG and a number of corner cases.
https://pypi.org/project/platformdirs/ https://pypi.org/project/platformdirs/
Ideally the OS you deploy to should handle this as well.
- hooverd 3y agoThanks! You find a new Python lib every day.