Re: Searching for a file

2025-05-23 Thread Mats Wichmann
On 5/22/25 21:04, Rob Cliffe via Python-list wrote: It occurs to me that it might be useful if Python provided a function to search for a file with a given name in various directories (much as the import.import_lib function searches for a module in the directories in sys.path). This function w

Re: Best practice for config files?

2025-05-23 Thread c . buhtz
Hello Michael, thank you for your important question. On GNU/Linux (and maybe for POSIX?) systems there is a standard about it. Look for $XDG_CONFIG_HOME. To drive it further, you might distinguish between config data (related and

Re: Searching for a file

2025-05-23 Thread Rob Cliffe via Python-list
On 23/05/2025 18:55, Mats Wichmann wrote: On 5/22/25 21:04, Rob Cliffe via Python-list wrote: It occurs to me that it might be useful if Python provided a function to search for a file with a given name in various directories (much as the import.import_lib function searches for a module in th

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

2025-05-23 Thread rbowman
On Fri, 23 May 2025 22:22:36 - (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

Re: Best practice for config files?

2025-05-23 Thread Chuck Rhode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 22 May 2025 14:59:28 -0500 "Michael F. Stemper" 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 thi