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
"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
: python-list@python.org
Subject: Python script not letting go of files
I have a script which fetches a production site directly from a
Subversion repo using svn export
It runs a bunch of commands by calling this little method ...
def trycmd(cmd, log):
retcode = -1
ret = f"Trying
I have a script which fetches a production site directly from a
Subversion repo using svn export
It runs a bunch of commands by calling this little method ...
def trycmd(cmd, log):
retcode = -1
ret = f"Trying {cmd}"
try:
retcode = os.system(cmd)
ret = f"\n{cmd} -ok->