• Re: Best practice for config files? (Posting On Python-List Prohibited)

    From Lawrence D'Oliveiro@21:1/5 to Paul Rubin on Fri May 23 01:20:53 2025
    On Thu, 22 May 2025 17:37:09 -0700, Paul Rubin wrote:

    "Michael F. Stemper" <[email protected]> writes:

    Should I specify the location of the config file with a command-line
    option, or is requiring the program to be executed in the directory
    containing the configuration file considered acceptable practice?

    You can also use an environment variable.

    Remember to follow some reasonable precedence order by which settings
    specified one way can be overridden by those specified another way. The
    most natural one would seem to be (from highest to lowest)

    1) command-line option
    2) environment variable
    3) user-specific config
    4) systemwide config
    5) hard-coded

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Stefan Ram on Fri May 23 22:22:36 2025
    On 23 May 2025 19:18:23 GMT, Stefan Ram wrote:

    Coincidentally, I just read:

    |When IDLE first starts, it attempts to read user |configuration files
    in ~/.idlerc/ (~ is one's home |directory).

    Apps should be abiding by the XDG spec nowadays, and stop cluttering up users’ home directories.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rbowman@21:1/5 to Lawrence D'Oliveiro on Sat May 24 03:00:18 2025
    On Fri, 23 May 2025 22:22:36 -0000 (UTC), Lawrence D'Oliveiro wrote:

    On 23 May 2025 19:18:23 GMT, Stefan Ram wrote:

    Coincidentally, I just read:

    |When IDLE first starts, it attempts to read user |configuration files
    in ~/.idlerc/ (~ is one's home |directory).

    Apps should be abiding by the XDG spec nowadays, and stop cluttering up users’ home directories.

    Good luck with that. I've got 48 directories ranging from .arduino15
    to .vscode. Then there are the 58 directories in .config.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)