Re: Python tutor mailing list?

2025-05-27 Thread dn via Python-list
Message received! Hope you enjoyed your holiday... On 28/05/25 12:00, Alan Gauld via Python-list wrote: On 28/05/2025 00:32, Alan Gauld via Python-list wrote: The archives are still there and the sign-up page seems to work, but it doesn't recognise me. I tried signing up as a new member with

Re: Python tutor mailing list?

2025-05-27 Thread Alan Gauld via Python-list
On 28/05/2025 00:32, Alan Gauld via Python-list wrote: > The archives are still there and the sign-up page seems to > work, but it doesn't recognise me. I tried signing up as > a new member with a different address and that seems to work(ie no > errors) but I still don;t see any list activity. I

Python tutor mailing list?

2025-05-27 Thread Alan Gauld via Python-list
I am the moderator of the python tutor mailing list. Or at least I was. It seems the tutor list has been deleted. I came back from vacation to find that I can't access it. Nobody told me anything in advance. I've tried emailing postmaster but got no response. I wonder if anyone here has any idea

Re: Searching for a file

2025-05-27 Thread Thomas Passin
On 5/27/2025 10:41 AM, Roland Mueller via Python-list wrote: To get a list of files in a given directory one can use glob.glob and The OP had a different problem. He wanted to find a config file of known name that could be in one of several locations. os.path.isfile from os.path import i

Re: Searching for a file

2025-05-27 Thread Peter J. Holzer
On 2025-05-24 17:18:11 -0600, Mats Wichmann wrote: > On 5/23/25 16:05, Rob Cliffe via Python-list wrote: > > 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 s

Re: Searching for a file

2025-05-27 Thread Roland Mueller via Python-list
When answering I saw only the post from Peter. Everything else was in SPAM folder. GMail was so kind to move the "junk" mails to my Inbox after pressing SENT :-) My code works in Linux but with a small change it should work in Windows too. ti 27.5.2025 klo 17.41 Roland Mueller (roland.em0...@goog

Re: Searching for a file

2025-05-27 Thread Roland Mueller via Python-list
To get a list of files in a given directory one can use glob.glob and os.path.isfile >>> from os.path import isfile >>> from glob import glob >>> files_in_var_tmp = [f for f in glob('/var/tmp/*') if isfile(f) ] For several directories iterate over the dirs and add the resulting list of files. >>