Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python Subject: Re: Best practice for config files? Date: Thu, 22 May 2025 17:37:09 -0700 Organization: A noiseless patient Spider Lines: 6 Message-ID: <878qmo2mdm.fsf@nightsong.com> References: <100nvn0$3kq1t$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 23 May 2025 02:37:10 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f2c5b96aff4a964955251db4eaa97613"; logging-data="3934562"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fQhhplBCogTvjPWRKh0Yn" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:Bkrt+CCQBUhyVrwb+9Pdl1S1vKQ= sha1:AhQeHZ1H5bCpsFq7TXtIO6Tqz6A= Xref: csiph.com comp.lang.python:197492 "Michael F. Stemper" 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.