Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197493
| Path | csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: Best practice for config files? (Posting On Python-List Prohibited) |
| Date | Fri, 23 May 2025 01:20:53 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 19 |
| Message-ID | <100oihl$3ob15$4@dont-email.me> (permalink) |
| References | <100nvn0$3kq1t$1@dont-email.me> <878qmo2mdm.fsf@nightsong.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 23 May 2025 03:20:53 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="66bf645b4364106d9fa53dd112b84fc2"; logging-data="3943461"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DCoGHGECG/Hxziw1J0TsU" |
| User-Agent | Pan/0.162 (Pokrosvk) |
| Cancel-Lock | sha1:UowpwXW1UzDuQ9jy7q2rKASLedc= |
| Xref | csiph.com comp.lang.python:197493 |
Show key headers only | View raw
On Thu, 22 May 2025 17:37:09 -0700, Paul Rubin wrote: > "Michael F. Stemper" <michael.stemper@gmail.com> 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
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