Re: Python script not letting go of files

2022-11-29 Thread Mike Dewhirst
Stefan Thank you. I should have said this has been working fine for years and years until Ubuntu 2022.04 on a new droplet running Apache/2.4.52 I will refactor it one day - especially if the script is implicated. But I think I have to learn how to use lsof first! Cheers Mike On 30/11/2022

Re: Python script not letting go of files

2022-11-29 Thread Weatherby,Gerard
"Weatherby,Gerard" writes: >Do any of you Python folks see any blunders in the above code along the >lines of not letting go of py files or static assets? Er, no, I just replied to the original poster. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python script not letting go of files

2022-11-29 Thread Weatherby,Gerard
Does the script exit when complete? If you’re running on a Linux based system and have root access you can use lsof to see what processes have with files open. (Or use the psutil Python package). From: Python-list on behalf of Mike Dewhirst Date: Tuesday, November 29, 2022 at 2:20 AM To: pyth