For some small programs in Python, I would like to install, save and get user settings in a file in a portable (multi-platform) way.
I am thinking of a very simple ConfigParser file, for example, "~ / .program" or "~ / .program / program.cfg".
Is there a os.path.expanduser()better way to achieve this, or is there something easier / more straightforward?
source
share