Is there a general naming conventions for configuration files for a simple python program?
Thanks,
Udi
.conf is a nice extension too. But since mostly configuration files are application specific, it does not really matter what extension they have as long as they are consistent (i.e do not use .conf with .cfg in the same application).
I am not sure if you mean the file basename, of if your question also includes where to put the configuration file. Anyway, on location:
If it is a linux application, you should follow the XDG Base Directory specification (XDG -> Cross-desktop).
It says you should put your configuration files inside a folder named after your program, in $XDG_CONFIG_HOME/programname/
. XDG_CONFIG_HOME
is normally ~/.config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With