Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197494
| Path | csiph.com!eternal-september.org!feeder3.eternal-september.org!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Fri, 23 May 2025 13:35:29 +0000 |
| Date | Fri, 23 May 2025 08:35:28 -0500 |
| From | Chuck Rhode <CRhode@LacusVeris.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Best practice for config files? |
| Message-ID | <20250523083528.4ec97360@BigTimber.LacusVeris.com> (permalink) |
| References | <100nvn0$3kq1t$1@dont-email.me> |
| X-Newsreader | Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | base64 |
| Lines | 19 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-967DhYWwubUVkuxgiF9asXn5r7GZSw+zOtTXMAK/8o27cBHycxxBMAqg+rso9ylOuStvq+OZYhrX/2b!efBsDa763xrn8FkOr97e97K8EsLRNGdYgItPjxAWzQRlxxoXuwyMgnrBlpcrAJ5MaS7BDSf0McFS!Bg== |
| X-Complaints-To | abuse@giganews.com |
| X-DMCA-Notifications | http://www.giganews.com/info/dmca.html |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| Xref | csiph.com comp.lang.python:197494 |
Show key headers only | View raw
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 22 May 2025 14:59:28 -0500 "Michael F. Stemper" <michael.stemper@gmail.com> wrote: > Is requiring the program to be executed in the directory containing > the configuration file considered acceptable practice? Freedesktop.org proposes a specification for where such things ought to be located: + https://specifications.freedesktop.org/basedir-spec/latest/ Here's how I do it: > def get_xdg_config_home(): > > """The configuration directory. > > Normally $HOME/.config. > > """ > > result = pathlib.Path.home() / ".config" > return result - -- .. Be Seeing You, .. Chuck Rhode, Sheboygan, WI, USA .. Weather: https://LacusVeris.com/Wx .. 47° — Wind NNW at 12 mph. Sky clear. -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCaDB5oAAKCRBg2/xipKOW Ukg/AJ9cWxtykecg31HvVrCz+GhWPOn+gQCePacKiSXFlRdkEeyrzksobcbTCFw= =OzzD -----END PGP SIGNATURE-----
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Best practice for config files? "Michael F. Stemper" <michael.stemper@gmail.com> - 2025-05-22 14:59 -0500
Re: Best practice for config files? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-05-22 20:27 +0000
Re: Best practice for config files? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-05-22 20:33 +0000
Re: Best practice for config files? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-05-23 19:18 +0000
Re: Best practice for config files? (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-23 22:22 +0000
Re: Best practice for config files? (Posting On Python-List Prohibited) rbowman <bowman@montana.com> - 2025-05-24 03:00 +0000
Re: Best practice for config files? "Michael F. Stemper" <michael.stemper@gmail.com> - 2025-05-24 10:05 -0500
Re: Best practice for config files? Paul Rubin <no.email@nospam.invalid> - 2025-05-22 17:37 -0700
Re: Best practice for config files? (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-23 01:20 +0000
Re: Best practice for config files? Chuck Rhode <CRhode@LacusVeris.com> - 2025-05-23 08:35 -0500
Re: Best practice for config files? Jason H <jason_hindle@yahoo.com> - 2025-05-24 11:46 +0000
csiph-web